01 2015 档案
摘要:try { OpenFileDialog openFileDialog = new OpenFileDialog(); string str = comboBox_hexFilePath.Text; ...
阅读全文
摘要:1.调用系统函数生成全球唯一标识Guid.NewGuid().ToString();2.生成16组十六进制数 string randmData=Guid.NewGuid().ToString().Substring(24,12)+Guid.NewGuid().ToString(...
阅读全文
摘要:// //设备异常重载 // protected override void WndProc(ref Message m) { if (m.Msg == 0x0219) ...
阅读全文
摘要:private void textBox_proc1value_KeyDown(object sender, KeyEventArgs e) { Keys key = e.KeyCode; if (e.Control!=tru...
阅读全文
摘要:1.在类的里面添加 //写配置文件 [DllImport("kernel32")] private static extern long WritePrivateProfileString(string section, string key, string val, s...
阅读全文
摘要:glb_timer1WaitSeconds += 0.1; string s = string.Format("{0:f1}", glb_timer1WaitSeconds);
阅读全文