摘要:
图片→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 阅读全文
摘要:
修改注册表 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 阅读全文