winform中为了代码复用,我把列表显示等单独为一个窗体,在需要同样数据的列表时引用那个单独的窗体,如何实现 有没有更好的方法实现代码 窗体等复用。 如果一个大窗体上引用了几个独立的窗体 互相之间数据操作完刷新显示等都有哪些方法。 winform窗体之间互相刷新都有哪些方式,如果不存在子父关系时。。
解决方案 »
- 又有些遗忘了,引用其它窗体的对象
- Stimulsoft Reports 报表问题
- sql语句 排序问题
- 如果窗体中的检查框在设计时缺省选中,则在该窗体没有显示前,也就是在执行该窗体的_Load事件过程之前,首先会激发Check1_CheckedChanged事件,除了设置一个类变量控制外,大家一般都采取
- 关于DataGride分页的问题
- 在局域网中如何得知别的机器上的SQL Server管理服务器是否在运行!谢谢!
- 关于.NET Framework 问题
- 救急,关于类路径?up有分。。。
- XML 到 Access
- 开发桌面应用,C#,MFC,Delphi,BCB你选哪一个?
- winform大家帮忙看看这个dataGridView为什么显示不出数据
- HttpWebRequest请求异常
public static CommonForm.MsgEscapesTForm metf;
public static CommonForm.MsgEscapersSTForm msgST;
public MsgEscapesForm()
{
InitializeComponent();
} private void MsgEscapesForm_Load(object sender, EventArgs e)
{
mesf = new BHL.AICMEWS.SystemManage.CommonForm.MsgEscapesSForm();
mesf.FormBorderStyle = FormBorderStyle.None;
mesf.TopLevel = false;
mesf.Dock = DockStyle.Fill;
this.splitContainer2.Panel1.Controls.Add(mesf);
mesf.Show(); metf = new BHL.AICMEWS.SystemManage.CommonForm.MsgEscapesTForm();
metf.FormBorderStyle = FormBorderStyle.None;
metf.TopLevel = false;
metf.Dock = DockStyle.Fill;
this.splitContainer2.Panel2.Controls.Add(metf);
metf.Show(); msgST = new BHL.AICMEWS.SystemManage.CommonForm.MsgEscapersSTForm();
msgST.FormBorderStyle = FormBorderStyle.None;
msgST.TopLevel = false;
msgST.Dock = DockStyle.Fill;
this.splitContainer1.Panel2.Controls.Add(msgST);
msgST.Show(); }