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

Application.Exit() isn't working as expected

I have 2 forms (main and login). I open the login form with this piece of code: toolStripProgressBar1.Value = 50; toolStripStatusLabel_dynamic.Text = "Proberen toegang te verkrijgen..."; Login login = new…
Mathlight
  • 6,436
  • 17
  • 62
  • 107
1
vote
2 answers

Winforms ToolStripSplitButton displays with a grey line under it, and is only raised on when the mouse hovers over it

I'm trying to figure out the ToolStripSplitButton. The purpose is to display a usercontrol gauge when a ToolStripSplitButton is pressed. However, no matter what settings I try, there is a grey line visible below the button. The ToolStrip itself is…
Pedery
  • 3,632
  • 1
  • 27
  • 39
1
vote
1 answer

How to keep focus on a ToolStripControlHost's Owner in a ToolStrip

Using C# with .Net 2.0 (though the problem occurs in 4.0) There appears to be a bug involving the focus of the ToolStrip control and ToolStripControlHosts in Windows Forms. Consider this example: The user clicks on ToolStripMenuItem "Test A", then…
1
vote
1 answer

Add inherited TextBox to ToolStrip

It seems like it's not possible for some reason but it worth a try: Is it possible to add inherited TextBox to a ToolStrip? Thank you.
gavra
  • 93
  • 1
  • 2
  • 11
0
votes
1 answer

Set alignment of a toolstriptextbox

I have a form with a Toolstrip along the top. On this toolbar I have a toolstrip button which I've set the alignment to "Right" and it now appears on the far right of the toolstrip. I now want to add a toolStripTextBox but when I right-click on it…
GrandMasterFlush
  • 6,269
  • 19
  • 81
  • 104
0
votes
1 answer

adjust ToolStripMenuItem dropdown size

Hello I've got a loop that adds some drop down items to a Tool Strip: usersToolStripMenuItem.DropDownItems.Add(ss); However this list is going to be long. Is there any way to confine the size of the drop down box (which currently takes up the height…
ikathegreat
  • 2,311
  • 9
  • 49
  • 80
0
votes
2 answers

C# ToolStripPanel Drawing Question

I am trying to get a ToolStripPanel to have the same drawing style as the embedded ToolStrips, so that it looks like one continuous bar. I have the ToolStrips using the ToolStripProfessionalRenderer so that they are styled the same as the Windows…
Matt
  • 2,619
  • 1
  • 17
  • 14
0
votes
3 answers

Remove whitespaces in the beginning of every string in a file in python?

How to remove whitespaces in the beginning of every string in a file with python? I have a file myfile.txt with the strings as shown below in it: _ _ Amazon.inc Arab emirates _ Zynga Anglo-Indian Those underscores are spaces. The code must…
Tyler Durden
  • 107
  • 1
  • 2
  • 8
0
votes
1 answer

keep dropdown list open in windows form

How can keep the dropdown list open after the users click on one of the items? I'm working in windowsform with C# and my boss wants me to keep droplist open after users select one item form list. The dropdown list is inside a toolstrip, so it can be…
Daniel
  • 3,322
  • 5
  • 30
  • 40
0
votes
1 answer

Premature closing of hosted usercontrol in toolstrip menu

I'm hosting a usercontrol in a toolstrip dropdown using the technique described here: http://windowsclient.net/blogs/faqs/archive/2006/07/12/how-can-i-add-a-user-control-to-a-toolstrip.aspx. This technique works beautifully, except for the fact that…
Pete
  • 6,585
  • 5
  • 43
  • 69
0
votes
0 answers

How to Control Which Object Used ToolStrip in C#

I have 100 buttons which created dynamically. Every button has same text and same name. Actually all of them is totally same. I added a property to my toolstrip menu called "color". This is my function which must be change color. private void…
0
votes
1 answer

Tool Strip Container Tools Strip Lost Focus and Double Click

VB.Net 2008 Express Edition "Form1" has a ToolStripContainer1.TopToolStripPanel which contains a ToolStrip with buttons. The buttons work on ONE click when "Form1" is active. If I click on another window and then return to "Form1" the ToolStrip…
Big Wave
  • 26
  • 5
0
votes
1 answer

Should not close the Menu of ToolStripCombobox

Avoid the closing of Menu in the ToolStripCombobox in the Windows application. when i select the items of the combo by using the UP/Down arrow keys the dropdown menu is closed automatically whenever the selection changed. How to avoid that auto…
Tanya
  • 1,571
  • 5
  • 22
  • 33
0
votes
1 answer

WinForms system-renderer Toolstrip item hover effect on button controls

If you take a look at the attached image, is there a way to get the drawing logic for this hover effect from the system renderer of the standard WinForms toolstrip ? http://imageshack.us/photo/my-images/10/toolstriphovereffect.jpg/ EDIT: Anyway,…
Denis Biondic
  • 7,943
  • 5
  • 48
  • 79
0
votes
1 answer

Cannot use ToolStripContainer in .NET 5.0

I need to create toolstrip on the left. But toolbox have not any ToolStripContainer. So I try to add manually a ToolStripContainer by coding at a design file. But a ToolStripContainer is drawn by a red cross. Private Sub InitializeComponent() …