2
Contributors
6
Replies
11
Views
7 Years
Discussion Span
Last Post by __avd
0

in coding i'm writing like this it gives an error

menustrip.Item(2) '' is the second one tab i.e. Edit and in edit i want to disable redo control .

what to do after that

0

You need to typecast the menu collection item.

CType(MenuStrip1.Items(1), ToolStripMenuItem).DropDownItems(1).Enabled = False
0

but if i have one more tab inside on like
edit--> Redo--> my control to disable so what to do?

0

The same way as in post #4

CType(CType(MenuStrip1.Items(0), ToolStripMenuItem).DropDownItems(2), ToolStripMenuItem).DropDownItems(1).Enabled = False
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.