摘要:
父窗体代码 #默认父窗体类 Form1 #弹出子窗体事件 private void MenuItem_Click(object sender, EventArgs e) { Form2 fb = new Form2(); fb.Owner = this; fb.Show(); } public vo 阅读全文
摘要:
注意代码编写时少产生垃圾,比如String + String就会产生大量的垃圾,可以用StringBuffer.Append this.Dispose(); this.Dispose(True); this.Close(); GC.Collect(); 注意变量的作用域,具体说某个变量如果只是临时使 阅读全文