I have created menu items from Menu Editor. I want to make its visible property to false. What I want to do is like the code below
dim mnuCntrl as control
Set mnuCntrl.Name=%26lt;Menu Control Name%26gt;
mnuCntrl.Visible=FalseAssign visible property of a control by a variable in VB?
Every control in Visual Basic has a NAME (Not the Caption or Text) property.
So for the Menu, try checking the Name of the control then write the sample code below if the name of the control is ';mnuFile';
mnuFile.Visible = False
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment