Link to home
Start Free TrialLog in
Avatar of reefcrazed
reefcrazed

asked on

Toolbar button size

I am trying to make a richtextbox that is fully working with bold, underline, italics etc and the toolbar under the richtextbox looks really goofy compared to the rest of the app. I mean it is just too friggin big. The buttons need to be about 20x14 but the smallest I can get the buttons on the toolbar are 23x22. Is there no way to get them to go smaller than this ?
Avatar of broadbent
broadbent
Flag of United Kingdom of Great Britain and Northern Ireland image

I think you need to set Autosize=false
Avatar of reefcrazed
reefcrazed

ASKER

Yeah but you still cannot get the stupid buttons to size, the numbers are greyed out.
You need to set Autosize=false for the toolbar itself first.
Then set the height of the toolbar = 15, and then set the button height = 14
Actually, the size of the toolbar doesn't matter. Just set Autosize=false for the toolbar and you'll be able to set your buttons to any size.
toolbarbutton1.size does not exists as a property.
And my toolbar has been set to autosize=false, you still cannot resize the buttons
What version of VB?
Visual Studio 2003
OK, sorry, I'm talking about 2005.
I wish.
Did you try
toolbar1.autosize=false ?
yes
If you read the description of ButtonSize, it says that its size depends on the font, text etc. The ButtonSize is actually only an indication of the actual size. The Autosize property in VS2003 if tru, adjusts the size of the toolbar to match the button. VS2005 toolstrip is a different beast.
Yeah I read the description and adjusted the font, text,etc and no good there.
Try to change TextAlign to "right"
I did something even better I downloaded a beautifully done button bar from here

http://www.codeproject.com/vb/net/lybralibrary.asp

I can resize it way down, the colors a great and totally functional. Makes the project look even better now.
ASKER CERTIFIED SOLUTION
Avatar of GranMod
GranMod

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial