Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

disable one specific menu

Status
Not open for further replies.

mariuslaurentiu

Programmer
May 31, 2005
10
0
0
RO
Hi,
I create an dynamic menu from sql database and after I click one item menu i disable it. One instance of a form appear and when I close it I want to enable the menu item.
My problem is when I use two menu items who run two instances of the same form; the menu item remain disable after I close the both forms.

Sorry for my English.


childForms(childForm) = New Nomenclator()
iMeniu.Enabled= False
AddHandler childForms(childForm).Closed, AddressOf ChildClosed
childForms(childForm).MdiParent = Me
childForms(childForm).Show()



Private Sub ChildClosed(ByVal sender As Object, ByVal e As System.EventArgs)
iMeniu.Enabled = True
RemoveHandler childForms(childForm).Closed, AddressOf ChildClosed
End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top