Questions tagged [toolstripmenu]
111 questions
0
votes
1 answer
Disable ToolStripMenu Items
I can disable the main toolStripMenu items but not the items in the sub menus.
For example I have a menu item called "Options" When I run the code below "Options" is disabled but none of the menu items under "Options" are disabled. Shouldn't this…

News Reader
- 79
- 2
- 8
0
votes
1 answer
How to handle dynamically generated Tool Strip Menu Items
How can I write code for a toolstripmenu dropdownitem where the items are generates on FormLoad taking values from a database table?
How can I write an OnClick method for this items that don't exist before I run the program?

Paris Karagiannopoulos
- 551
- 1
- 9
- 37
-1
votes
2 answers
vb.net statusbar text doesn't show
I have a code that searches for words in documents and fills a Listview with the found documents. Because the process can be rather lengthly I put a warning in the statusbar.
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles…

Marco
- 85
- 1
- 14
-1
votes
2 answers
How to disable or (un)check a ToolStripMenuItem when it is being displayed?
There are several examples online of how to disable a menu item's child (e.g. using the DropDownOpening event of the parent), but I'd like to create a class that inherits ToolStripMenuItem and can decide on its own whether it should be enabled or…

mike
- 1,627
- 1
- 14
- 37
-2
votes
1 answer
code to open form from toolstrip, same code yet among one code cannot do '.show();'
private void userToolStripMenuItem_Click(object sender, EventArgs e)
{
frUser user = new frUser();
user.Show();
}
private void categoryToolStripMenuItem_Click(object sender, EventArgs e)
{
frCategory…

Bee
- 3
- 1
-5
votes
2 answers
System.ArgumentOutOfRangeException Toolstrip menu
I am getting the below exception randomly. The toolstrip menu is created dynamically.
System.ArgumentOutOfRangeException - Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
at…

Rajiv
- 108
- 2
- 7