Questions tagged [menustrip]

This tag can be used in questions involving usage of MenuStrip class from Windows Forms (a GUI class library in the Microsoft .NET Framework).

255 questions
0
votes
1 answer

Enable [save & save as] only If there is an open file

I have MDI form Application, This application contains a menuStrip. The menuStrip contains Save & save as. What I want is, if there is an open file(MDI child) the save & save as will be enable, otherwise disable. Note: I haven't any code to do…
Lion King
  • 32,851
  • 25
  • 81
  • 143
0
votes
1 answer

VB.net menustrip button

I want to create a button that drops down a menustrip when clicked. I was successful in using the menustrip alone with dropdowns but i want to make a button as the main trigger to dropdown the menus. Is this possible? Thanks in advance.
Marc Intes
  • 737
  • 9
  • 25
  • 51
0
votes
2 answers

How can I draw arrows on my left-docked MenuStrip?

I have a C# form into which I've placed a left-docked MenuStrip. This MenuStrip contains some menu items which contain submenus, and some menu items which are effectively buttons (clicking on them results in an action taking place; n.b., I realize…
Stephen Deken
  • 3,665
  • 26
  • 31
0
votes
1 answer

How to display Drop Down item TEXT from Menu Strip

What I Wish to achieve is to extract the select item text and display it into a messagebox (for start, then i'm going to use it for a SQL Query...) I want to extract that particular selected ITEM, for instance : "SPR (Suivi piece rechange)" in the…
SpinaloS
  • 31
  • 1
  • 1
  • 12
0
votes
1 answer

MenuStrip control menu's location change when form size getting smaller

I have menustrip control in my Windows Form like this: FILE EDIT VIEW OPTIONS ABOUT UPDATE but when user changes the size of form and when form is getting narrow menus should be like this: FILE EDIT VIEW OPTIONS ABOUT UPDATE Is there any property…
cihadakt
  • 3,054
  • 11
  • 37
  • 59
0
votes
1 answer

How to get height of individual buttons in a MenuStrip in VB.Net

I have a menu strip, that can have buttons added/removed. I want to be able to get the height of each individual button, and add them up. Is this possible?
TheRyan722
  • 1,029
  • 13
  • 37
0
votes
1 answer

C# How to make one item from Menustrip be default selected? How to display the selected items from Menustrip Selected to a textbox

I am working on C# WFA. I have one menustrip which has one item called: Settings, under this I have three items: ID, Number, and Time. Under Number item there has 5 items again which man can choose. Now I want to make it like this: first make one…
0
votes
1 answer

displaying text property for ToolStripTextBox added runtime

I have added a menustrip at run time in my application. MenuStrip MS = new MenuStrip(); ToolStripMenuItem MN1 = new ToolStripMenuItem("&New"); I am further adding a textbox with an eventhandler for keyup event. ToolStripTextBox qry = new…
Rajiv S Mehta
  • 50
  • 2
  • 7
0
votes
2 answers

how to view only 1 tab PAGE when clicking a menu item in visual studio

I have a tab control with 2 tab pages and a menu strip with 2 items. when I click item 1 in menuStrip, I want to view ONLY TAB PAGE 1. I tried Private Sub item1ToolStripMenuItem_Click(...) TabPage2.Select() TabPage2.Show() …
kiaara
  • 11
  • 1
  • 9
0
votes
1 answer

How to add all active forms names to menustrip items in windows application C#

I want to add all the active forms names to the toolstripmenuitem of MenuStrip in my windows application to know how many and which forms are in open state. If I close any form that perticuller name should delete from menustrip.
Learner
  • 1,286
  • 6
  • 34
  • 57
0
votes
1 answer

Change expand menu direction

I want to know there is a way to change the direction in which a menu expands. I have a menu at the bottom of the form and I want it to expand upwards when I click my mouse over an item.
KF2
  • 9,887
  • 8
  • 44
  • 77
0
votes
1 answer

Changing the .Text of my MenuStripItems

This code only changes the top menu selectors. private void englishToolStripMenuItem_Click(object sender, EventArgs e) { menuStrip1.Items[0].Text = Languages.English.File; menuStrip1.Items[1].Text = Languages.English.Options; …
Sergio Tapia
  • 40,006
  • 76
  • 183
  • 254
0
votes
1 answer

MenuStrip function in vb

I am trying to write a program where I read in a text file and then give the user a few options to view different books that are in the file. I am moving along but I am having a problem figuring out how to let the user pick different options from…
compucrazy
  • 65
  • 3
  • 6
  • 21
0
votes
1 answer

comparision of WPF with WINFORM control

we have "layoutstyle" property in Winform to change the layoutstyle to horrizontal/vertical(all heading and Submenus), what is to be used in WPF to get the same result.
Vishal
0
votes
2 answers

C# - Menu Strip Query

I have two questions regarding the windows form menu strip: 1. How to force the form to always show the helper keys? Currently the letter underlines are displayed only if the Alt key is pressed. 2. What is the command to cause a menu to drop…
IneedHelp
  • 1,630
  • 1
  • 27
  • 58
1 2 3
16
17