[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Toolbar button size

Posted on 2006-05-11
19
Medium Priority
?
291 Views
Last Modified: 2008-02-01
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 ?
0
Comment
Question by:reefcrazed
  • 8
  • 7
  • 2
  • +1
18 Comments
 
LVL 4

Expert Comment

by:broadbent
ID: 16659414
I think you need to set Autosize=false
0
 

Author Comment

by:reefcrazed
ID: 16660260
Yeah but you still cannot get the stupid buttons to size, the numbers are greyed out.
0
 
LVL 10

Expert Comment

by:vadim63
ID: 16660461
You need to set Autosize=false for the toolbar itself first.
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 10

Expert Comment

by:vadim63
ID: 16660472
Then set the height of the toolbar = 15, and then set the button height = 14
0
 
LVL 10

Expert Comment

by:vadim63
ID: 16660524
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.
0
 

Author Comment

by:reefcrazed
ID: 16660556
toolbarbutton1.size does not exists as a property.
0
 

Author Comment

by:reefcrazed
ID: 16660582
And my toolbar has been set to autosize=false, you still cannot resize the buttons
0
 
LVL 10

Expert Comment

by:vadim63
ID: 16660616
What version of VB?
0
 

Author Comment

by:reefcrazed
ID: 16660634
Visual Studio 2003
0
 
LVL 10

Expert Comment

by:vadim63
ID: 16660645
OK, sorry, I'm talking about 2005.
0
 

Author Comment

by:reefcrazed
ID: 16660655
I wish.
0
 
LVL 10

Expert Comment

by:vadim63
ID: 16660679
Did you try
toolbar1.autosize=false ?
0
 

Author Comment

by:reefcrazed
ID: 16660702
yes
0
 
LVL 4

Expert Comment

by:broadbent
ID: 16661116
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.
0
 

Author Comment

by:reefcrazed
ID: 16661172
Yeah I read the description and adjusted the font, text,etc and no good there.
0
 
LVL 10

Expert Comment

by:vadim63
ID: 16661207
Try to change TextAlign to "right"
0
 

Author Comment

by:reefcrazed
ID: 16661234
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.
0
 

Accepted Solution

by:
GranMod earned 0 total points
ID: 16869045
PAQed with points refunded (250)

GranMod
Community Support Moderator
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Loops Section Overview
Suggested Courses

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question