当前位置:编程学习 > C#/ASP.NET >>

一个窗体了里 怎么写代码打开另一个窗体

 如题。谢谢 --------------------编程问答-------------------- OtherForm otherForm =new OtherForm();
otherForm.Show(); --------------------编程问答--------------------

new FrmAnother().showDialog();
--------------------编程问答--------------------

OtherForm otherForm =new OtherForm(); 
otherForm.Show();


这个很好的。 --------------------编程问答--------------------

 frmAnther objFrmAnther = new frmAnther();
 objFrmAnther.Show(); //非模式对话框
 //objFrmAnther.ShowDialog(); //模式对话框,在所有窗体之上
--------------------编程问答--------------------

OtherForm otherForm =new OtherForm(); 
otherForm.Show();//非模式对话框,
//otherForm.Show(this);模式对话框,
otherForm.Dispose();
--------------------编程问答-------------------- 谢谢 --------------------编程问答-------------------- OtherForm otherForm =new OtherForm(); 
otherForm.Show();
或是
otherForm.ShowDialog(); --------------------编程问答-------------------- oo --------------------编程问答--------------------
引用 3 楼 czk598478 的回复:
C# code
OtherForm otherForm =new OtherForm(); 
otherForm.Show();




这个很好的。
--------------------编程问答-------------------- 下面的文章对LZ的这一块内容进行全面讲解。
谈基于.net平台windows开发中的模式窗体
http://blog.csdn.net/zhzuo/archive/2006/05/05/708941.aspx --------------------编程问答-------------------- http://www.skinfeature.com
补充:.NET技术 ,  C#
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,