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

How to add two ToolStripComboBox and Separator Horizontally to one ToolStripDropMenuItem?

I think that this should be simple to do. But I haven't seen it. I'd like to do something like: DropDown -> DropDownItem1 [ComboBox1 [|] ComboBox2], DropDownItem2 [...], DropDownItem3 [...]; I'm using ToolStripDropDownButton in a ToolStrip. I'm…
2
votes
1 answer

Adding UltraCombo to Already Formatted ToolStrip

I am trying to change the combo box in this image to an ultra combo control (this is a picture of a tool strip with controls added): In my view's constructor, I've added the following: UltraCombo cboArea2 = new UltraCombo(); ToolStripControlHost…
2
votes
2 answers

Distorted images when using ImageList on ToolStripButton

I want to put some images into a ToolStripButton, and have the images change depending on the state of the button. So I've set the .ImageList of the ToolStrip to be my ImageList and simply change the ToolStripButton.ImageIndex to the appropriate…
JohnUbuntu
  • 699
  • 6
  • 19
2
votes
2 answers

Having more than one toolstrip at the same line

C# WinForms: I would like to have two Toolbars But I also want them to be at the same line . I mean I do Not want one of them to be below or over the other them. so they will be in tow lines which is I do not want. How can I do this?
Bohn
  • 26,091
  • 61
  • 167
  • 254
2
votes
1 answer

Restrict adding controls to ToolStrip

I am designing a series of ToolStrip controls for specific jobs eg Font ToolStrip. What I need to do is stop user and developers from adding or removing controls from my ToolStrips. Any help will be gratefully accepted Danny
dannyhut
  • 179
  • 11
2
votes
1 answer

Show ContextMenuStrip from ToolStripDropDown without dismissing ToolStripDropDown

I have a ToolStrip. In my ToolStrip I have a ToolStripDropDownButton. My ToolStripDropDownButton has a DropDown of type ToolStripDropDown that contains a ToolStripControlHost which contains a Label. I have assigned a ContextMenuStrip to my Label.…
Jacob G
  • 3,645
  • 1
  • 20
  • 25
2
votes
2 answers

How to prevent ToolStrip from docking in another ToolStripContainer?

I have an MDI application that allows me to open different types of child windows. I can open multiple (but different) instances of the same type of child window. (Example: I can open 3 instances of child window type A and 2 instances of child…
Mike Post
  • 6,355
  • 3
  • 38
  • 48
2
votes
0 answers

Get Location of ToolStripButton image?

I would like to get the location of the the image of an ToolStripButton, how can i do that? I tried it like this: private void ToolStripButton_MouseHover(object sender, EventArgs e) { Graphics formGraphics = this.CreateGraphics(); …
Procos
  • 94
  • 9
2
votes
1 answer

System.Windows.Forms.ToolStrip height or autosize

I'm using a series of ToolStrips in an Excel 2007 Actions Pane. I'm programatically adding buttons to each ToolStrip and then adding each ToolStrip to the actions pane. So far so good; my ToolStrips appear, with their associated…
cori
  • 8,666
  • 7
  • 45
  • 81
2
votes
2 answers

WinForms Menu Toolstrip Get Status

So I have a project where there is some automatic initialization going on through some classes that are created automatically as global variables (yeah they are static instances). At a point inside this (it has no relation with the C# GUI for the…
Yeti
  • 841
  • 5
  • 26
2
votes
1 answer

How to keep the text color black when the toolstrip menu is disabled?

When a toolstrip menu is not enabled, its text color turns into grey. Is there any way to keep it black? Or any other color? Already tried with ForeColor but it only makes a difference when the menu is enabled.
Ioan V
  • 65
  • 5
2
votes
3 answers

The correct way to get the owner toolstrip of a toolstrip item in .net, winforms

I found that while trying to find the owning toolstrip of an item, it wasn't a easy as just looking at the owner of the item. Below is some pseudo code that I think should work. Can anyone see any problems with this or should it work in all…
Jules
  • 4,319
  • 3
  • 44
  • 72
2
votes
2 answers

VB.Net - Toolstrip Button Mousehover Event

Is there a way to change the size of the toolstrip button on mousehover event? I tried this but didn't work. Private Sub tsDriver_MouseHover(ByVal sender As Object, ByVal e As System.EventArgs) Handles tsDriver.MouseHover Dim pt As Point …
Codemunkeee
  • 1,585
  • 5
  • 17
  • 29
2
votes
1 answer

Create a Toolstrip for each Toolstripbutton located on a main Toolstrip

I want to create a Toolstrip and for each ToolStripButton. I also want to create a Toolstrip below the first, in this way each Toolstrip dynamically appear when I click on a ToolStripButton. I have tried to create the main Toolstrip with Visual…
YouneL
  • 8,152
  • 2
  • 28
  • 50
2
votes
0 answers

Enable all control in Form

In my MDIparent I set some controls to enabled=false. How I will enable all controls including toolstrip items, menustrip items, menustrip subitems? This is the working code: public void EnableAllControls(Control.ControlCollection Controls) { …
Bags Banny
  • 21
  • 2