我的form1类中有
private DevExpress.XtraNavBar.NavBarControl navBarControl1;
这个控件的其中一个属性为
this.navBarControl1.Visible = false;
我想在另一个窗口form2中通过事件改变其visible的属性为true
请问怎么改?我在form2中输入
Form1.后面没有navBarControl1这个值.而在form1中就可以直接输入navBarControl1.Visible = true;
请问我如何在form2中改变navBarControl1.Visible 变量的值?
private DevExpress.XtraNavBar.NavBarControl navBarControl1;
这个控件的其中一个属性为
this.navBarControl1.Visible = false;
我想在另一个窗口form2中通过事件改变其visible的属性为true
请问怎么改?我在form2中输入
Form1.后面没有navBarControl1这个值.而在form1中就可以直接输入navBarControl1.Visible = true;
请问我如何在form2中改变navBarControl1.Visible 变量的值?
ctr.Visible=true ;
Application.OpenForms["Form1"].Controls["groupBox1"].Controls["navBarControl1"];
还要确保name 正确。
还要确定是控件而不是组件。