473,468 Members | 1,370 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

DropDownButton in Toolbar

I created a toolbar, set the style of my button to be a
dropdownbutton, and type in the button name in the text
field.

After I do this, what happens is that the dropdownbutton
automatically grows to about double the original button
height (from 22 or 36). If I change the button height
back to 22, the name of the dropdownbutton is cutoff.
Can someone show me how to fix this problem?
Nov 15 '05 #1
3 5003
It's probably because your drop down button has text while the others don't.
Either remove the drop down button's text or add text to the rest of the
buttons.

-vJ

"James Tran" <jt***@slb.com> wrote in message
news:04****************************@phx.gbl...
I created a toolbar, set the style of my button to be a
dropdownbutton, and type in the button name in the text
field.

After I do this, what happens is that the dropdownbutton
automatically grows to about double the original button
height (from 22 or 36). If I change the button height
back to 22, the name of the dropdownbutton is cutoff.
Can someone show me how to fix this problem?

Nov 15 '05 #2
The thing is, there are no other buttons. Here is a
simple way to reproduce the problem. Create a toolbar,
add a drowdownbutton and then give it a name in the text
field. The size of this button will start out at 22 but
once you enter the text name, no matter how short the
name is, the button height automatically goes to 36. If
you manually resize the button back to 22, you will no
longer see the text. This happens no matter what size
you set to the button.
-----Original Message-----
It's probably because your drop down button has text while the others don't.Either remove the drop down button's text or add text to the rest of thebuttons.

-vJ

"James Tran" <jt***@slb.com> wrote in message
news:04****************************@phx.gbl...
I created a toolbar, set the style of my button to be a
dropdownbutton, and type in the button name in the text
field.

After I do this, what happens is that the dropdownbutton automatically grows to about double the original button
height (from 22 or 36). If I change the button height
back to 22, the name of the dropdownbutton is cutoff.
Can someone show me how to fix this problem?

.

Nov 15 '05 #3
This is as expected. If you want to see the text of the button, you need
some space to show it and that's why the height is being readjusted. If you
want to reduce the height of the button you will have to reduce the height
of the image associated with that button.

-vJ

"James Tran" <an*******@discussions.microsoft.com> wrote in message
news:01****************************@phx.gbl...
The thing is, there are no other buttons. Here is a
simple way to reproduce the problem. Create a toolbar,
add a drowdownbutton and then give it a name in the text
field. The size of this button will start out at 22 but
once you enter the text name, no matter how short the
name is, the button height automatically goes to 36. If
you manually resize the button back to 22, you will no
longer see the text. This happens no matter what size
you set to the button.
-----Original Message-----
It's probably because your drop down button has text

while the others don't.
Either remove the drop down button's text or add text to

the rest of the
buttons.

-vJ

"James Tran" <jt***@slb.com> wrote in message
news:04****************************@phx.gbl...
I created a toolbar, set the style of my button to be a
dropdownbutton, and type in the button name in the text
field.

After I do this, what happens is that the dropdownbutton automatically grows to about double the original button
height (from 22 or 36). If I change the button height
back to 22, the name of the dropdownbutton is cutoff.
Can someone show me how to fix this problem?

.

Nov 15 '05 #4

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

Similar topics

1
by: krian | last post by:
Hi, How can I change the styles of the DropDownList(Select box)..? and also I want to place an image in the place of DropDownButton of Select Box .. How can i done these in DHTML..?. I would...
102
by: me | last post by:
How do I prevent the save/print/email/mypictures toolbar from popping up when IE users place their cursor over photos at my website? Thank you in advance for your help. Signed, me
4
by: Jason Tabert | last post by:
Is there a way to create a custom IE toolbar with C# (or anything else in ..NET for that matter)? I have been looking all day and have had no luck finding a good place to start. I need to make...
4
by: Fredrik Melin | last post by:
Have anyone seen a component or know how to create a button like toolbar dropdown button without the toolbar (to be used like a normal button) Regards Fredrik Melin
6
by: Juan Pedro Gonzalez | last post by:
I wanted to add a Combobox to a toolbar... Kind of the look you get on VisualStudio's toolbar. I've been able to find some VB 6 samples, but the placeholder option is no longer available for...
1
by: Alfredo Barrientos | last post by:
Hi, I have a little trouble trying to assign a Toolbar control to another toolbar variable control. I am getting my forms controls with this: for (int j = 0; j <= frmChild.Controls.Count -...
4
by: Gerhard | last post by:
I have an MS Access app with multiple forms. One of the forms has a Toolbar (MsComctlLib.Toolbar) and it works as advertised. I handle the buttons in the Toolbar1_ButtonClick event. I would like...
3
by: Undergrid | last post by:
Hi All, I've got a few toolbars in my application hosted in a ToolStripContainer. I have found a problem whereby the location of a toolbar is not restored when doing a LoadSettings if the...
6
by: =?Utf-8?B?L2Rldi9udWxs?= | last post by:
Hello, i am using visual studio 2003 enterprise architect version. I am making apps for the .Net framework 1.1. While testing an interface, i discovered something strange. In this application...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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...
1
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...
0
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,...
0
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...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...

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.