Questions tagged [toolstripitem]
49 questions
1
vote
1 answer
Only display ToolStripMenuItem icons
I have a Windows Forms ToolStripSplitButton which shows only an icon. I have added some ToolStripMenuItems and I have set their DisplayStyle to ToolStripItemDisplayStyle.Image. The drop down display the area for text (but it's blank), and the…

Michael Kelley
- 3,579
- 4
- 37
- 41
1
vote
1 answer
How do you keep a ToolStripSplitButton within the bounds of its container
I am developing a windows forms application with C#
My main form has a toolstrip with a ToolStripSplitButton which is aligned to the right. When the split button is clicked, its menu displays over the edge of the form, unless, the form is too close…

Matthew Layton
- 39,871
- 52
- 185
- 313
1
vote
2 answers
How do you set cursor on a ToolStripItem
I have some context menu items that are not clickable. They just report the status of something. I don't like how the cursor still appears like they're clickable though.
Anyway to change this?
There isn't a Cursor Field like one would expect.

blak3r
- 16,066
- 16
- 78
- 98
1
vote
3 answers
Deselect ToolStripItem on ContextMenuStrip
Simple question:
I can .Select a ToolStripItem (like, if i want a preselected option when opening a context menu strip) but i cannot seem to find a way to set .Selected to false or somehow deselect it!
Is it possible?

Istrebitel
- 2,963
- 6
- 34
- 49
0
votes
0 answers
Measure ToolStripItem in custom ToolStrip renderer
I have a WinForms app for .NET Framework in which the text of items in context menus based on the the ContextMenuStrip component are drawn using Graphics.DrawString() to provide consistent look with other interface elements. The core part of the…

TecMan
- 2,743
- 2
- 30
- 64
0
votes
0 answers
Using Graphics.TextRenderingHint with TextRenderer.DrawText to get anti-aliased text in ToolStripItem
I need to enhance one legacy WinForms app to support the inheritance of the TextRenderingHint setting in the app forms.
For simplicity, let's suppose that we have a main form with the TextRenderingHint property of the…

TecMan
- 2,743
- 2
- 30
- 64
0
votes
1 answer
How to refresh ToolTipText on ToolStripButton?
I want to implement simple toggle functionality on a ToolStripButton.
View Mode --> Edit Mode
Edit Mode --> View Mode
This piece of code is working fine except that ToolTip doesn't refresh. I tried AutoToolTip property. I also tried setting…

user1
- 4,031
- 8
- 37
- 66
0
votes
1 answer
C# Windows Forms - Updating toolStripLabel text returns auto-scrollable panel to top
I have the following form set up:
https://i.stack.imgur.com/CuwCP.png
(I can't post images due to this account being new)
Whenever I update the text of the underlined ToolStripLabel the scrollbar returns to top, as shown…

Martin Meli
- 452
- 5
- 18
0
votes
1 answer
show image in ToolstripLabel from app config file
Case: I have a Desktop application in which I need to show Customized Images as per Logged In Vendor. So, in App.config, the image file is added as a key:
How to consume it in ToolstripLabel control? …

Vikrant
- 4,920
- 17
- 48
- 72
0
votes
0 answers
C++/CLI Winforms ToolStripMenuItem Checked property
I develop a Winforms app in C++/CLI. I added a MenuStrip object to my MDI Parent form. In the MenuStrip is a ToolStripMenuItem object, and to its DropDownItems collection is added a ToolStripMenuItem object everytime a new MDI Child form is created.…

DreamTool
- 149
- 1
- 15
0
votes
1 answer
Can't access checked property of menu item created with code outside the designer
private void Form_Shown(object sender, EventArgs e)
{
// Load Settings
this.tsmiDuplexEnabled.Checked = Properties.Settings.Default.DuplexEnabled;
this.tsmiRemoveBlanks.Checked = Properties.Settings.Default.AutoDiscardBlanks;
…

BearSkyview
- 385
- 1
- 8
- 24
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
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
How to view Horizontal scroll in the toolstripmenuitem
I have created a toolstipmenuitem in which i added a lot of toolstripmenuitems as sub menus.
And then i restricted the maximum size of the toolstripmenuitem which results in:
Vertical scrolling automatically becomes enabled as shown in the…

user2691432
- 93
- 1
- 2
- 10
0
votes
1 answer
insert menu items in ascending order and vertically in Toolstripmenuitem
I have a inserted items in the toolstripmenuitem control successfully. But i am not able to rearrange items as shown below :-
For ex :-
Currently Items are added in toolstripmenuitem like below fashion:-
aa bb cc dd
ee ff gg hh
But i want like this…

user2691432
- 93
- 1
- 2
- 10