I'd like to disable all MenuItems (menu File, Edit, View, Help, etc..)
I have a function which disables all controls in a container:
but the problem is that MenuItem is not a controll. How can I do it?
tx a lot
matej
I have a function which disables all controls in a container:
Visual Basic:
'Function that Disables or Enables all controls in a container control
Public Sub EnableDisableObject(ByVal Enable As Boolean, ByVal Container As Control)
Dim Control As Control
For Each Control In Container.Controls
Control.Enabled = Enable
Next
End Sub
but the problem is that MenuItem is not a controll. How can I do it?
tx a lot
matej