473,722 Members | 2,240 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 4032
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
1757
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
9176
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
2268
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
1905
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
2457
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
1177
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
5039
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
3015
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
4378
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
8863
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
8739
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
9384
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9238
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...
0
9088
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8052
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...
1
6681
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5995
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
3
2147
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.