473,698 Members | 2,171 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Help with ToolStrip Items resizing badly

It's kind of hard to explain (so if you need more just ask) and any
help would be greatly appreciated.

I am writing a side-by-side file manager. On each side I have a
DropDownButton that holds either the root name or the Favorite name
for the current path. I also have a DropDownComboBo x that has the
current full path as well as a series of paths that lead back to the
root (i.e. "C;\Program Files\Microsoft Office", "C:\Program Files", "C:
\"). I want them all to stay in the ToolStrip, no overflow at all.

But the problem (I think) I have is that the various AutoSize settings
are getting into conflict with each other. Because if I set everything
to AutoSize = false; one, but only one, of the comboboxes does resize.
But it resizes to be huge and fall off the toolstrip (or run off the
NC edge so you can't click on the drop arrow).

I can't get any combination of AutoSize and Overflow settings to stop
the bloody thing from resizing and pushing one or the other or some
combination of controls off the toolstrip.

Is there a way to actually turn Overflow off? Does the ToolStrip
Control actually work? Do I need to just skip the toolstrip and
rebuild with a FlowLayoutPanel ? If so how do I replicate the dropdown
button?

This is really annoying me.

Thanks for any help you can give.

Tom P.
Aug 14 '08 #1
1 4029
On 14/08/2008 in message
<64************ *************** *******@a70g200 0hsh.googlegrou ps.comTom P.
wrote:
>Is there a way to actually turn Overflow off? Does the ToolStrip
Control actually work? Do I need to just skip the toolstrip and
rebuild with a FlowLayoutPanel ? If so how do I replicate the dropdown
button?
Turn off auto sizing for the Toolbar AND all the individual
controls.button s on it, then trap the form Layout/Resize events and do it
manually.

>This is really annoying me.
I know exactly how you feel, took me ages to figure it out!

--
Jeff Gaines Damerham Hampshire UK
All things being equal, fat people use more soap
Aug 14 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1755
by: gene kelley | last post by:
I'm migrating/rewriting one of my VB6 apps to VB2005. In the process, I'm trying to avoid using third party activex controls used in the VB6 project. One of the third party controls in the VB6 app was for menu/toolbars. This control had an option to render the toolbar in an Office 2003 style which is nothing more than a top to bottom gradient. When a new ToolStrip is added to a form, the default appearance of the Toolstrip is that of...
4
9173
by: Adam Honek | last post by:
I have a ToolStrip. The ToolStrip has a ToolStripDropDownButton with 3 ToolStripMenuItems My question is how do I catch the click event ot these 3 ToolStripMenuItems? I tried the below but it doesn't catch the events: Private Sub LowPriorityToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles
0
2266
by: Jon Davis | last post by:
I'm taking the items from a menustrip of a control and moving them to the parent form's menustrip: private void TakeMenus(AdminControl ac) { foreach (Control c in ac.Controls) { if (c is MenuStrip) { MenuStrip ms = (MenuStrip)c;
1
1902
by: trainersb | last post by:
I am trying to use the ToolStrip control in Visual Studio 2005. I create a C# Windows application & add a ToolStripContainer control to the form with top, left, bottom & right panels visible. I have docked it to fill the form. Next I add a ToolStrip control to tje top panel of the ToolStripContainer control. I add a few items to the ToolStrip (it doesn't matter what these items are). Finally I run the project. I can 'dock' the...
13
2452
by: pamelafluente | last post by:
Hello. I have written the following code (this code is on a control): Sub InitSomething() mSet(me.FindForm) End Sub Sub mSet(ByVal f As Control) For Each t As Control In f.Controls If TypeOf t Is ToolStripMenuItem Then AddHandler t.MouseEnter, AddressOf Me.SetSemaforoMenu
0
1175
by: =?Utf-8?B?Q2hyaXMgV2Fsa2Vy?= | last post by:
PropertyBinding can be a great way to save user settings, but there is a problem with using PropertyBinding on ToolStrip items. I've found a solution to the problem and am sharing it here since I couldn't find a solution anywhere on the web. To recreate the problem: Add a ToolStrip to a form. Add a TextBox to the ToolStrip. PropertyBind the Text property of the TextBox (to do this, view the properties of the TextBox, go to...
2
5033
by: Doc John | last post by:
After I've added the menustrip and the toolstrip to my MDI windows Form (and I've added their respective items), I notice that the items disappear. They're still in the code, but the association between the bar and the items (i.e. toolStrip.Items.AddRange) disappears. How come? This is happening frequently. After I fix it, it erases it again. I'm currently adding these menu controls to an mdi application built in VS2002 and successfully...
2
3013
by: daveL | last post by:
Hi I have a Toolstrip on a Window with 5 buttons i want to send this to a application static fucnction to enable / disable the buttons based on User rights When i send Window.controls to the method buttons dont exists in the Controls Collection When i work with the Toolstrip i can't see any controls
3
4377
by: LukasMalik | last post by:
Hi, I have widely used ToolStrip in my application. I created a UserControl which contains this ToolStrip. I would rather like to use inheritance: MyCustomControl : ToolStrip Everything seems to work fine, untill I want to set visibility to one of ToolStripItem - there are maybe 20 buttons and not all of my ChildForms which contains this MyCustomControl need all of them. I open in designer mode in Property window "Items", choose right...
0
8674
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8603
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9023
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8893
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7721
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4615
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3045
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2327
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
1999
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.