I can get this (http://www.vbforums.com/showthread.php?t=351533 ) to work on my main form but not on forms that i set as MdiChildren forms of my main form. How can i adapt the code from that link to disable the close button on my MdiChildren forms ?
Printable View
I can get this (http://www.vbforums.com/showthread.php?t=351533 ) to work on my main form but not on forms that i set as MdiChildren forms of my main form. How can i adapt the code from that link to disable the close button on my MdiChildren forms ?
Ah nm i found by adding it to the a timer tick event i can make it work
VB Code:
Me.MdiParent = MyForm.ActiveForm Dim myMenuManager As New SystemMenuManager(Me, False, SystemMenuManager.MenuItemState.Greyed)
Thanks :bigyello: