摘要: SN是.NET中提供生成密钥的工具,在对程序集进行强签名的时候,需要用到一个公钥对,用这个工具,可以生成一个密钥文件,同时可以查看文件里面的公钥,并且可以使用这个工具来对程序集进行强签名。延迟签名的时候也需要使用这个工具。这个工具一般是在C:\Program Files\Microsoft SDKs 阅读全文
posted @ 2017-05-10 17:02 DRenTeng 阅读(1406) 评论(0) 推荐(0) 编辑
摘要: 公司买了linux系统,要我实现linux和window系统的之间的通讯,从零开学学习吧,首先学习安装Telnet客户端和服务器。Windows7 Telnet 的安装和启动 Telnet是系统管理员常用的远程登录和管理工具,在Windows2000/XP/2003 /Vista系统中它作为标准的系统组件集成到系统中供用户使用。不过默认情况下Telnet服务是被禁止,通常情况下我们只需运行services.msc打开服务管理,找到Telnet服务项设置其启动类型为“手动”或者“自动”,然后启动该服务即可使用了。不过在Windows7中,你按照上述方法是不能找到并启用Telnet服务的。那... 阅读全文
posted @ 2013-04-15 23:47 DRenTeng 阅读(342) 评论(0) 推荐(0) 编辑
摘要: 界面:感觉没有什么地方需要解释。核心代码: bool isDrag = false; Rectangle theRectangle = new Rectangle(new Point(0, 0), new Size(0, 0)); Point startPoint, oldPoint; private Graphics ig; private void button1_Click(object sender, EventArgs e) { openFileDialog1.Filter = "*.jpg,*.jpeg,*.bmp,*.gif,*.ico,*.png,*.tif,*.wm 阅读全文
posted @ 2011-07-06 11:04 DRenTeng 阅读(306) 评论(0) 推荐(0) 编辑
摘要: 界面:核心代码:Cursor myCursor = new Cursor(@"C:\WINDOWS\Cursors\aero_cross.cur"); //自定义鼠标 Image myImage;//选择图片private void button1_Click(object sender, EventArgs e) { openFileDialog1.Filter = "*.jpg,*.jpeg,*.bmp,*.gif,*.ico,*.png,*.tif,*.wmf|*.jpg;*.jpeg;*.bmp;*.gif;*.ico;*.png;*.tif;*.wmf& 阅读全文
posted @ 2011-07-06 10:57 DRenTeng 阅读(474) 评论(0) 推荐(0) 编辑
摘要: 记忆是有限的,你们应该知道我想说什么了。//核心代码Bitmap bitmap;private void buttonOpen_Click(object sender, EventArgs e) { OpenFileDialog openFileDialog = new OpenFileDialog(); openFileDialog.Filter = "*.bmp|*.bmp"; openFileDialog.Title = "打开图像文件"; openFileDialog.Multiselect = false; if (openFileDialog 阅读全文
posted @ 2011-07-04 12:33 DRenTeng 阅读(455) 评论(0) 推荐(0) 编辑
摘要: 核心代码:Graphics graphics = this.CreateGraphics(); Pen myPen=new Pen(Color.Black, 1); int beginX = 50; int beginY = 65; int height = 35; int width = 50; Point pointX1 = new Point(beginX, beginY); Point pointY1 = new Point(beginX + 210, beginY); Point pointX2 = new Point(beginX, beginY - 45); Point poin 阅读全文
posted @ 2011-07-04 12:25 DRenTeng 阅读(753) 评论(0) 推荐(0) 编辑
摘要: using System.Drawing;using System.Drawing.Imaging;namespace Ex04_03{ public partial class Form1 : Form { string str; public Form1() { InitializeComponent(); }//选择图片 private void button1_Click(object sender, EventArgs e) { openFileDialog1.Filter = "*.jpg,*.jpeg,*.bmp,*.gif,*.ico,*.png,*.tif,*.wm 阅读全文
posted @ 2011-07-04 10:51 DRenTeng 阅读(290) 评论(0) 推荐(0) 编辑
摘要: string str; //在图片中绘制文字 private void button1_Click(object sender, EventArgs e) { try { Image myImage = System.Drawing.Image.FromFile(str); Bitmap map = new Bitmap(myImage); myImage.Dispose(); Graphics graphics = Graphics.FromImage(map); graphics.InterpolationMode = InterpolationMode.HighQualityBilin. 阅读全文
posted @ 2011-07-04 10:45 DRenTeng 阅读(572) 评论(0) 推荐(0) 编辑