Questions tagged [toolstripmenu]

111 questions
0
votes
1 answer

C# Menu strip text value

I have a ToolStripMenu and a table where I have a column named qcategory char type. I want to create a query that selects only rows where qcategory is equal with ToolStripMenuItem selected. So I tried in this way: String categorie; private…
dpaul1994
  • 332
  • 3
  • 16
0
votes
1 answer

WinForms passing data between Forms

I have a table named questions with a field name qcategory. In WFA I have a ToolStripMenu where I have a category named Simulation and a sub-category named B. So, I want to create a mysql SELECT where to select only rows which values are equal with…
dpaul1994
  • 332
  • 3
  • 16
0
votes
1 answer

save and load menu state c#

I'm using a Windows form app in which I have a menu with 2 options. The user can check which option should run at start up and the app remembers it for the next time the user open the app. I'm having difficulties in finding the correct parameter for…
roy.me
  • 421
  • 2
  • 7
  • 19
0
votes
1 answer

How to disable a strip menu item from an MDI child

I have a parent form with a strip menu called topMenu. I have a child form called "SignIn" and when a user is logged in then I want to disable the topMenu.item.logIn and enable topMenu.item.Logout. How Can I disable the topMenu of the parent…
Jaylen
  • 39,043
  • 40
  • 128
  • 221
0
votes
0 answers

Hide ToolStripMenuItem's auto tooltip

I've a context menu with another drop-down context menu, on the second context menu each item has a tooltip (setted with toolStripMenuItem.ToolTipText): When I click an item, I start some computing-intensive operations, but just before I call…
Teejay
  • 7,210
  • 10
  • 45
  • 76
0
votes
0 answers

Reproducing "on focus" when minimizing another window on a context menu strip click

I would like to reproduce the "on focus" behavior when you minimize an application on a context menu strip (I need that in C#), let me explain why: When you minimize a window, the focus will be restored to the previous application that was used…
Dyr Fenrir
  • 129
  • 2
  • 15
0
votes
1 answer

How to determine the parent of child menu item in ToolStripMenu?

I am a hobby programmer. In my C# 2010 Express + SQL Server 2008 desktop application I am trying to add code to click event of childitem. I want to determine the parent (menuitem) of this child menu item. How can I find it?
Muni
  • 13
  • 1
  • 3
0
votes
1 answer

Adding custom menu item to ToolStripMenuItem's collection list

I'm building my own ToolStripMenuItem and I want it to show up in the list of choices to add to a Menu's DropDownItems collection. How do I do that? Here's what I have so far. imports System.ComponentModel ''' ''' A list of check box…
Luminous
  • 1,771
  • 2
  • 24
  • 43
0
votes
1 answer

visual basic multiple toolstripmenuitems to perform the same on click

I am new here. So apologize in advance if not wording question properly. I am developing an application (VS2013, Visual Basic) that using multiple menu items in the MenuStrip. When item is clicked the identical function is called - the Tab is…
goryef
  • 1,337
  • 3
  • 22
  • 37
0
votes
1 answer

Assigning ToolStripMenu to many TreeView nodes and know which node was pressed on

I've TreeView object which i need to enable users to delete nodes from it, So i have delete ToolStripMenu that i assign to nodes enabled to be deleted. But i want to know which node was pressed on and fired the delete_toolStripMenuItem_Click event…
user1673892
  • 409
  • 2
  • 5
  • 17
0
votes
2 answers

Enabling / Disabling ToolStripMenuItem when clicked

I've two forms (called form1 as mdi container and form2) with an opentoolstripmenuitem in form1, when opentoolstripmenuitem clicked form2 called and opentoolstripmenuitem become disable, but when i click closebox in the top right of form2 the…
Betta Picta
  • 65
  • 1
  • 1
  • 13
0
votes
1 answer

c# winform datagridview delete toolstripmenu

I have created a code that will do all this step: 1. right click on any index in datagridview. 2. select delete option in toolstripmenu 3. the current row selected highlighted 4. confirm delete. 5. do delete. private void…
Ren
  • 765
  • 4
  • 15
  • 42
0
votes
0 answers

Trying to tell if mouse is over open toolstripmenu or contextmenuitem when mousewheeling

I have a Winforms app with a Toolstrip and Datagridview. I'm attempting to implement MouseWheeling on the ToolStripMenuItems based on some information here: StackOverflow: Mouse wheel scrolling Toolstrip menu items I have added a Mousewheel event…
user3329538
  • 289
  • 1
  • 5
  • 12
0
votes
1 answer

How to display a ContextMenuStrip on a ToolStripMenuItem?

In Winforms, I want to display a ContextMenuStrip when the user right-clicks on a ToolStripMenuItem. For example (see the image below), in Firefox there is Bookmarks menu and when we right-click on one of the bookmarks, a context menu item will be…
Setyo N
  • 1,953
  • 2
  • 26
  • 28
0
votes
0 answers

How to increase size of horizontal scroll button in Toolstripmenuitem

I have a Toolstripmenuitem similar to what is shown in this image: I'm trying to figure out how to make the overflow scroll at the bottom and top larger so that it is easier to click?