摘要:
Form form = Application.OpenForms["Form_Main"];if ((form == null) || (form.IsDisposed)){ Form_Main form_Main = new Form_Main(); form_Main.Show();} els 阅读全文
摘要:
private void Form1_FormClosing(object sender, FormClosingEventArgs e) { this.Visible = false; e.Cancel = true; } 亲测可用 阅读全文
摘要:
ushort crc = 4090;//高八位数据byte hi = (byte)((crc & 0xFF00) >> 8);//第八位数据byte lo = (byte)(crc & 0x00FF);//组合后的数据string data = lo.ToString("X2") + hi.ToSt 阅读全文
摘要:
方法1:在主函数入口加如下代码 System.Windows.Forms.Control.CheckForIllegalCrossThreadCalls = false; 亲测可用 阅读全文