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
2 answers

c# winforms toolstripmenuitem change color disabled state item

When a ToolStripItem is disabled, among other UI changes is that it's Text and Image is greyed out and changes to ForeColor are ignored. I need to override one the event responsible for painting the toolstrip items. i use my own custom toolstrip but…
Laurent
  • 91
  • 10
1
vote
1 answer

Windows Form ToolStripButton Flat Style (Visual Studio Alike)

I'm working with C# on a windows form application (.NETFramework 4.8) and I'm trying to make a ToolStrip menu that looks very flat like the Visual Studio toolbars, how can this be done? I also cant get rid of the white line under the toolstrip. This…
1
vote
7 answers

C# Winforms How to update toolStrip in function

I'm building a UI for a program, and I can't figure out why my progress bar won't become visible after the convert button is clicked. private void convertButton_Click(object sender, EventArgs e) { toolStripProgressBar.Visible = true; ... …
Tony Trozzo
  • 1,231
  • 6
  • 20
  • 34
1
vote
0 answers

Migrating to .NET 6 UserControl with ToolStrip does not work

I'm trying to create a user control that contains multiple controls. For example, a ToolStrip that is editable at design time(add Item a design time). The following code works in .Net Framework 4.7, but not in .NET…
1
vote
2 answers

How do I get a Winforms ToolStripSplitButton to remember the last button clicked?

I'm trying to use a ToolStripSplitButton for the "export" part of my UI, i.e. Export to PDF... Export to XLS... Export to CSV... It should default to "Export to PDF..." at startup, and show all the possible settings when the user clicks the dropdown…
Tom Bushell
  • 5,865
  • 4
  • 45
  • 60
1
vote
0 answers

C# Windows Forms ToolStrip and MenuStrip memory leak

I'm creating a Windows Forms app in C# (.NET 4.7.2), I just added a ToolStrip and a MenuStrip. If I run the application the memory usage jumps to 600mb, too much for a Windows Forms application with only a ToolStrip and a MenuStrip, if I delete them…
1
vote
1 answer

How to create an event handler for a MenuItem on a ToolStripDropDownButton?

I'm using a ToolStrip control as a menu on a form. I have configured it with the Items Collection Editor. It seems that events cannot be configured in the Items Collection Editor. The ToolStrip itself has the Click and the ItemClicked events. My…
Stringeater
  • 170
  • 1
  • 9
1
vote
2 answers

Option Strict On disallows implicit conversions between String and Object {String}

I am trying to clean my ways as a beginner programmer by using Option Strict On. I managed to clean all errors except this one. I am using the Tag property of a ToolStrip for some text information. Clicking on the ToolStrip, I need to remember the…
Florin
  • 375
  • 3
  • 13
1
vote
1 answer

C#: Disappearing arrow after OnRenderSplitButtonBackground override

I was trying to change the background of a ToolStripSplitButton using an override, but by doing that the arrow on the dropdown disappears when hovering on the button. Code: protected override void…
Dj_Mike238
  • 65
  • 1
  • 2
  • 7
1
vote
1 answer

C# ToolStripProfessionalRender, event OnRenderItemText applied only on the first item

I'm drawing a custom toolstrip using ToolStripProfessionalRender and editing the OnRenderItemText event as follows: protected override void OnRenderItemText(ToolStripItemTextRenderEventArgs e) { e.Item.ForeColor = Clr.White; e.Item.TextAlign…
TheSphinx
  • 47
  • 1
  • 7
1
vote
1 answer

ToolStripButton Click issue

My Window Form has a Toolstrip, there're a few Toolstrip Buttons on it. I click one Toolstrip Button to bring a Dropdown Color dialog, the Color Dialog is showing, but I have to click the Dialog window twice to select a color (one click to gain…
qtg
  • 125
  • 1
  • 11
1
vote
2 answers

Set Windows-Forms ComboSox DataSource to specific attributes of objects in a List

I have a List of Accounts: List accountList; Each Account has a ID. I want to set all of the Accounts IDs in the accountList into a Windows-Forms ComboBox. How can I achieve that? EDIT Soultion using Linq: myCombobox.DataSource =…
baltermia
  • 1,151
  • 1
  • 11
  • 26
1
vote
1 answer

Change transparency for ToolStrip submenu

I am tampering with ToolStrip modifications as of now and is trying to make the submenu also transparent like the MenuStrip. I can't manage to make the submenu's property to be like the menu itself. How do I do that? Here's my code for the…
TerribleDog
  • 1,237
  • 1
  • 8
  • 31
1
vote
1 answer

Can I show the ToolStrip of a child Form in the MDIParent Form?

I have an MDI Form and I want to merge/add the child Form's ToolStrip with parent Mdi Form. Normally, a child Form's ToolStrip is shown only inside the owner child Form, but I want to merge it with the MdiParent's. I can do it with the MenuStrip…
1
vote
1 answer

Winforms ToolStrip.BackColor returns wrong color

The origin of my problem I created a very simple dummy application in C# using winforms. It contains only a ToolStrip and a TrackBar inside that ToolStrip. The TrackBar should have the same BackColor as the ToolStrip, but it seems, that the property…
Lukas-T
  • 11,133
  • 3
  • 20
  • 30