Questions tagged [toolstrip]

This is .net framework class which provides a container for Windows toolbar objects. This is used in creating toolbars in Winform application.

288 questions
1
vote
1 answer

What does ToolStripProfessionalRenderer.OnRenderItemBackground do?

I am writing a custom ToolStripProfessionalRenderer component and currently working through all of the OnRender... overrides. This one in particular has stumped me: OnRenderItemBackground I can't see it drawing anything, so to force it to draw…
Matthew Layton
  • 39,871
  • 52
  • 185
  • 313
1
vote
1 answer

Get the (ToolStrip) parent of a ToolStripDropDownMenu

I am writing a custom ToolStripProfessionalRenderer Take for example, the following override: protected override void OnRenderImageMargin(ToolStripRenderEventArgs e) { if(e.ToolStrip is MenuStrip) { // It never is. It's always…
Matthew Layton
  • 39,871
  • 52
  • 185
  • 313
1
vote
0 answers

.NET ToolStrip AutoSize wrong when padding not default

When padding is default in ToolStrip then AutoSize works fine like this: Screenshot: http://i.imgur.com/538dSN4.png But if I change padding then AutoSize calculates ToolStrip size wrong: Screenshot 2: http://i.imgur.com/gfD2e4e.png Because of…
Jaex
  • 4,204
  • 2
  • 34
  • 56
1
vote
0 answers

No ToolStripSeparator in ToolStrip OverflowPanel

VB.NET 2013 - Framework 4.5. When I make the size of my form with a toolstrip on it small enough, an overflowbutton appears. When clicking it I see the overflowpanel with all the buttons of the toolstrip that won't fit on it. But the…
1
vote
2 answers

Insert existing Buttons into Context Toolstrip - Winforms

I have a GUI and some buttons in WinForms. Now I want to create a Toolstrip Menu and move the buttons into the menu. Is it possible without copying the whole code into the new Toolstrip entries? I just want to link the buttons somehow. Thanks
uzi42tmp
  • 271
  • 2
  • 9
  • 22
1
vote
1 answer

How to implement Visual Studio style Add or Remove Buttons toolstrip

I want to implement visual studio style Add or Remove Ruttons toolstrip like following in my winforms application, how can I achieve this? I haven't tried anything on this as I am not sure how to start and I don't have much working experience on…
techBeginner
  • 3,792
  • 11
  • 43
  • 59
1
vote
1 answer

Unifying ToolstripButtons and ToolstripMenuItems

Almost in all cases, ToolStripItems do just what their equivalent MenuStripItem do. In these cases, ToolTip, icon and text of these two commands are the same. So, is there any way (preferably a .NET native way) to synchronize and unify these two…
melmi
  • 988
  • 3
  • 9
  • 27
1
vote
1 answer

ToolStripPanel Join method isn't adding toolstrip to panel

I've got a really weird problem with ToolStripPanel.Join and I've been searching on Google and SO for some clue as to what I'm doing wrong but I can't figure it out. Basically, when I use ToolStripPanel.Join, the first ToolStrip that I add doesn't…
greyseal96
  • 880
  • 7
  • 23
1
vote
1 answer

vb.net - Add Databinding to a ToolstripComboBox

i just managed to get my ToolstripComboBox to display a Datasource (Dictionary). But now i want to add a DataBinding to the SelectedValue Property, but i doesn't work. For a normal ComboBox it works :/.. My…
mademyday
  • 83
  • 2
  • 9
1
vote
0 answers

Move ToolStripItem down

I have a custom-rendered ToolStrip but the menu items are not where I want them to be. How do I move them down within render's code? You can't change the Bounds property of the items and I don't want to subclass the items image…
Kristina
  • 15,859
  • 29
  • 111
  • 181
1
vote
2 answers

Toolstrip Drop Down Button Not Large Enough

Well the answers from stackoverflow looked promising, but no luck yet. Also, I may not have quite enough experience yet to see it. Simple I thought: I am looking for a larger drop down arrow in a ToolStripDropDownButton as an item in the collection.…
Buck
  • 599
  • 7
  • 20
1
vote
4 answers

.NET Referencing similar controls

I have multiple toolstrip controls in my application and was looking for a way to hide them all at once. E.g. allToolStrips.Visible = false; instead of toolstrip1.Visible = false; toolstrip2.Visible = false; ... toolstripn.Visible = false; I'm…
Gio Borje
  • 20,314
  • 7
  • 36
  • 50
1
vote
1 answer

How do I get rid of the drop shadow on my bindingnavigator?

I've done some styling on a bindingnavigator toolstrip in my C# winforms app (VS2010), principally setting the background colour and getting rid of dividers. It now looks like this... My question is how do I get rid of the "drop shadow" effect…
ifinlay
  • 621
  • 1
  • 7
  • 24
1
vote
1 answer

.NET ToolStrip control bug: leave event not fired until the ToolStrip is disposed

To reproduce this bug you need to create custom ToolStripItem, using ToolStripControlHost. In my case, I made ToolStripDateTimePicker control (as seen on many good tutorials). The control however behaves slightly different than a regular…
Harry
  • 4,524
  • 4
  • 42
  • 81
1
vote
1 answer

How to get notified when an Item is added to a ToolStripMenuItem.DropDownItems collection

I am developing a MDI application in c#. I am having trouble when two MenuStrip are combined: I have the parent Parent Form with its MenuStrip parentMenu and some ToolStripMenuItem elements: Option1, Option2. Then I have a child Form with its…
José D.
  • 4,175
  • 7
  • 28
  • 47