473,403 Members | 2,366 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

Remove text from ToolStripDropDownButton

SammyB
807 Expert 512MB
I have a ToolStrip control on a windows app that contains a ToolStripDropDownButton. When the button is pressed, I would like the menu to display just icons for each choice with no text.

If I add a ToolStripMenuItem to the ToolStripDropDownButton DropDownItems, I can set the DisplayStyle to Image instead of ImageAndText, but I still get about 1 cm of white space to the right of the menu item's image. How can I get rid of the white space?

TIA --Sam
Dec 19 '08 #1
2 2205
Plater
7,872 Expert 4TB
You might be stuck doing OwnerDraw (i.e. drawing the icon yourself in the paint method and adjusting the size of the control)

If you change the image/text orientation, can you get the white space to split between left/right sides instead of all on one side? Might be less noticeable that way
Dec 22 '08 #2
SammyB
807 Expert 512MB
> stuck doing OwnerDraw
Yes, that's what I concluded, ugly. But, it looks like I won't actually need a drop-down button: all the choices currently fit in the toolbar. Thanks for looking: it's easy to miss a property.
Dec 22 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Phil Powell | last post by:
URL: http://www3.brinskter.com/soa/soa_samp.asp?refURL=valsignalandet This URL produces a nice page with form material to produce user-inputted band search information Problem is that...
3
by: kangoo | last post by:
Hi, I'm trying to remove the last charater in a richTextBox. I though richTextBox.Text.Remove(richTextBox.Text.length-1, 1); would work, but it does nothing (eg richTextBox.Text += "some new...
9
by: Charles Law | last post by:
I have a form on which user controls are placed at runtime. When a control is added to the form a handler is added for an event that a high-level object raises, which must be handled by the new...
5
by: Priya | last post by:
I accidentally deleted the toolstrip which had the ToolStripDropDownButton. Is there a easy way to get it back. The code for the toolstrip still exists, its just that I cant see it in the...
1
by: Adam Honek | last post by:
Hi, I have a toolstrip on a form. One of the parts that comprise this toolstrip is a ToolStripDropDownButton I'm trying to catch these events but somehow it's not working how. I'm using the...
4
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...
8
by: Paul | last post by:
Hi, My VB is very rusty I'm afraid! What would be the most efficient way to remove the following ASCII characters from a string? à è ì ò ù À È Ì Ò Ù á é í ó ú ý Á É Í Ó Ú Ý â ê î ô û Â Ê Î Ô...
10
by: Mike Copeland | last post by:
I have data I need to normalize - it's "name" data. For example, I have the following: "Watts, J.C." I wish to (1) parse the "first name" ("J.C.") and adjust it to "JC". Essentially, I want to...
3
by: Allen Chen [MSFT] | last post by:
Hi Richard, Quote from Richard================================================== However I also want to be able to remove the panes. I have tried to include this, but find that when I first...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
0
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,...
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...
0
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...
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
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...

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.