`
liuzhaohong
  • 浏览: 12413 次
  • 性别: Icon_minigender_2
  • 来自: 青岛
最近访客 更多访客>>
文章分类
社区版块
存档分类
最新评论
文章列表
近期真是学了不少东东,现在拿出来分享一下 using System.IO; namespace Demo {     public partial class Form1 : Form     {         int i = 0;         public Form1()         {             InitializeComponent();         }         private void button1_Click(object sender, EventArgs e)         {             string aa = " ...
今天我的串口接收数据的项目终于做完了,拿出来共享一下~~ using System.IO.Ports; using System.Threading; using System.IO; namespace SerialPortDemo {     public partial class Form1 : Form     {         bool isStar = false;         Thread threadReceive = null;         SerialPort serialPort = null;         int i = 0;         int ...
public partial class Form1 : Form     {         public Form1()         {             InitializeComponent();             this.bind();         }         public void bind()         {             string sql = "select * from titles";             this.dataGridView1.DataSource = dal.dao.getTable(s ...
    由于Visual C#本身没有类库,是通过.Net FrameWork SDK(软件开发包)定义的一些类来实现对注册表的操作的。这就是名称空间Microsoft.Win32中封装的二个类:Registry类和RegistryKey类。在RegistryKey类中定义了二个方法用来创建注册表中的主键、子键和键值。它们是CreateSubValue ( )方法和SetValue ( )方法。那么如何用Visual C#来修改注册信息?在本文中,我们只介绍修改注册表中的键值的方法。而对于主键和子键,由于.Net FrameWork SDK中还没有定义这方面的方法,所以还无法完成安全的修改注册表 ...
Global site tag (gtag.js) - Google Analytics