多窗口操作2
来源:互联网 发布:用linux用gtk还是qt 编辑:程序博客网 时间:2024/05/29 17:40
FORM1------父窗口
BUTTON1------FORM1上的按扭
FORM2-----子窗口
BUTTON2-----FORM2上的按扭
如何实现单击BUTTON1后显示FORM2
然后单击BUTTON2后把BUTTON1的ENABLE属性变成FALSE;(原为TRUE)
Form2
public delegate void delegate_SetBtProperty(bool _Enable);
public delegate_SetBtProperty SetBtProperty;
private void button2_Click(object sender, System.EventArgs e)
{
SetBtProperty(false);
}
_____________________________________
Form1
private void button1_Click(object sender, System.EventArgs e)
{
Form2 fr2=new Form2();
fr2.SetBtProperty=new WindowsApplication1.Form2.delegate_SetBtProperty (SetBt2Property);
fr2.Show();
}
public void SetBt2Property(bool _Enable)
{
this.button1.Enabled=_Enable;
}
BUTTON1------FORM1上的按扭
FORM2-----子窗口
BUTTON2-----FORM2上的按扭
如何实现单击BUTTON1后显示FORM2
然后单击BUTTON2后把BUTTON1的ENABLE属性变成FALSE;(原为TRUE)
Form2
public delegate void delegate_SetBtProperty(bool _Enable);
public delegate_SetBtProperty SetBtProperty;
private void button2_Click(object sender, System.EventArgs e)
{
SetBtProperty(false);
}
_____________________________________
Form1
private void button1_Click(object sender, System.EventArgs e)
{
Form2 fr2=new Form2();
fr2.SetBtProperty=new WindowsApplication1.Form2.delegate_SetBtProperty (SetBt2Property);
fr2.Show();
}
public void SetBt2Property(bool _Enable)
{
this.button1.Enabled=_Enable;
}
- 多窗口操作2
- 多窗口操作1
- vim - 多窗口操作
- VIM 多窗口操作
- Vim 多窗口操作
- Vim 多窗口操作
- Vim 多窗口操作
- Tmux 多窗口操作
- Vim 多窗口操作
- vim多窗口操作-------切换窗口
- vim多窗口操作-------调整窗口尺寸
- vim多窗口操作-------改变窗口布局
- vim多窗口操作shortcut
- linux terminal 多窗口操作
- 窗口操作
- 窗口操作
- 窗口操作
- 窗口操作
- C#操作XML文件简要[转]
- C#窗口传值
- VS2005(c#)项目调试问题解决方案[转]
- 关于二进制和文本文件的读写操作
- 多窗口操作1
- 多窗口操作2
- session详解
- VMWARE下调整linux的分辨率
- 使用多线程使软件界面具有较好的响应性[转]
- 《美丽心灵》感想
- linux下如何安装软件
- Robocode 无法启动的问题
- C# 加密解密
- C# 长用类型转换