how to disable menu strip sub items in vb.net application.
Set the property of sub menu item - Enabled=False
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
You need to typecast the menu collection item.
CType(MenuStrip1.Items(1), ToolStripMenuItem).DropDownItems(1).Enabled = False
Thanks it works
but if i have one more tab inside on like
edit--> Redo--> my control to disable so what to do?
The same way as in post #4
CType(CType(MenuStrip1.Items(0), ToolStripMenuItem).DropDownItems(2), ToolStripMenuItem).DropDownItems(1).Enabled = False
Why doesn't the code (2) below produce the same output as the code (1)? Let's say you entered "4" as input:
cout << "enter integer: ";
Here is a sample of my code where I retrieve a fingerprint template stored in mysql database. I have stored the fingerprint template as BLOB type. I have a table ...
Good day to everyone.
I need help. Have to make more of these and need someone to show me how.
My code doesn't work the way it should.
It would ...