摘要: 图片→Base64:1 private void button1_Click(object sender, EventArgs e)2{3MemoryStream strem = new MemoryStream();4Image image = new Bitmap(this.pictureBox1.Image);5image.Save(strem,ImageFormat.Png);6string strImage = Convert.ToBase64String(strem.ToArray());7this.textBox1.Text = strImage;8}Base64→图片1 pri 阅读全文
posted @ 2011-06-22 15:35 王元勋 阅读(508) 评论(2) 推荐(1) 编辑
摘要: 修改注册表 1 RegistryKey hklm = Application.LocalMachine; 2 RegistryKey run = hklm.CreateSubKey(@"SOFTWARE\Microsoft\Windows\Current\Version\Run"); 3 try 4 { 5 run.SetValue("tractor.exe","D:\\tractor.exe"); 6 MessageBox.Show("注册表添加成功!!","提示",MessageBoxBut 阅读全文
posted @ 2011-06-22 10:10 王元勋 阅读(571) 评论(0) 推荐(2) 编辑