Questions tagged [toolstripmenu]

111 questions
1
vote
1 answer

want submenu on right mouse click of ToolStripMenuItem - C#

I have one Toolstrip control inside that i am adding some ToolStripMenuItem. For every ToolStripMenuItem, I want one submenu (like Close). And click of right mouse button on any ToolStripMenuItem that submenu should show. ToolStripMenuItem…
SK.
  • 4,174
  • 4
  • 30
  • 48
1
vote
1 answer

VB.Net Open New Form Instance as Separate Process

I am trying to launch a separate instance of my application with a new process ID. Is there any way to do this? The following code will show a separate form, but it shares the process ID of the original form: Private Sub…
user667118
  • 67
  • 10
1
vote
1 answer

Create ToolStripMenuItem with checked items

I need create one item in my ToolStripMenuItem with this feature: if I check it, in application is turn on "stay on top" property. I tryed this code: private void alwaysOnTopToolStripMenuItem_CheckedChanged(object sender, EventArgs e) { …
Vincenzo Lo Palo
  • 1,341
  • 5
  • 19
  • 32
1
vote
1 answer

StatusBar MenuStripItem Select Mouse

I expose you my problem today. I created a statusStripLabel for showing the current name - the selected item of MenuStrip or ToolStripMenuItem when the mouse is hover it. I have this code : ( it's working ) private void…
1
vote
1 answer

ComboBox text change failure

I am calling the following on ToolStripMenu item click : protected void windowNewMenu_Click(object sender, EventArgs e) { if (_selectedThings.Contains(((ToolStripMenuItem)sender).Tag)) { selectedItemsPropertyGrid.SelectedObject…
jth41
  • 3,808
  • 9
  • 59
  • 109
0
votes
1 answer

Restrict certain ToolStripMenu items to certain users

Using VB.NET 2010: I'm making a simple "launcher" application for our work applications. I have already created the ToolStripMenu that contains the menus I want. They will be arranged like so: File | Dept 1 | Dept 2 | Dept 3 | Admin | Help What I…
Mitch Brown
  • 25
  • 1
  • 5
0
votes
0 answers

C# - Set image in menu generated as mdiwindowlistitem

I rewrite the question. In C# I have a desktop application in .NET Framework. That application has a form that is MDIParent, and inside it will display a number of other forms. These forms have a visible icon in their upper left corner. Now, the…
0
votes
2 answers

Adding to strip menu at run time

OK I have a list of strings (file names in fact), that i want to create a file menu dynamical form. So taking my list of file names, first code strips of the directory string and file sufix (for bonus question how can I wrap the two remove lines up…
DevilWAH
  • 2,553
  • 13
  • 41
  • 57
0
votes
1 answer

MDI parent form toolstrip button control MDI child

I want to make the toolstrip button on MDI parent to be able perform MySQL command for MDI child I have try to create button in MDI child with an MySQL command and try to access from MDI parent toolstrip event handler using…
Selikur
  • 3
  • 3
0
votes
0 answers

How do I prevent the tool strip menu item from being clicked when the user double clicks to resize the form

I'm scratching my head on this one. A user turned in a bug report that when they resize the form by double clicking the header the tool strip menu item that moves under the mouse is clicked. I've isolated it to the tool strip menu item being under…
0
votes
1 answer

Selecting 1 Tool Strip Menu Item at any one time

I have a Tool strip menu with 4 options. The options are degrees of screen rotation. (0, 90, 180, 270) I am trying to select only 1 of these and keep it selected. When I choose one then another, both are ticked (selected). I have searched and found…
0
votes
0 answers

Multiple buttons in toolStripMenuItem .NET WinForm

I'm working in C# Windows Form .NET standard and I would like to create a menustrip with multiple buttons like the one in figure, I don't even know how it is called.
0
votes
0 answers

How to get context item menu position when right click in ToolStripMenuItem_Click function relative to Grid?

I have ultraWinGrid, I want to copy cell's value to clipboard. For that, I want to get the X position of context menu when user right clicks on the grid. I want to get this position in ToolStripMenuItem_click function. For that, I am taking grid's…
Prasad Gavande
  • 213
  • 1
  • 4
  • 19
0
votes
1 answer

Unable to access Cursor.Current.Position (Access of shared member....through an instance; qualifying expression will not be evaluated

I am trying to determine the current mouse position in a MouseHover event for a ToolStripMenuItem. I am using the Cursor.Current.Position property to accomplish this. Here is the prospective code: Private Sub pbNotesFlag_MouseHover(sender As…
0
votes
1 answer

C# WinForms ToolStripTextBox sizing and detect key press

I have a very simple C# WinForm sample: private System.Windows.Forms.ContextMenuStrip ct1; var header = new ToolStripMenuItem("Header with long test like Lorem Ipsum"); header.Enabled = false; var txt = new ToolStripTextBox(); txt.Text =…
Daniel
  • 2,318
  • 2
  • 22
  • 53