Solved

how to make ToolStripButton aligned in the center of ToolStrip?

Posted on 2006-07-03
10
1,914 Views
Last Modified: 2008-01-09
Is it possible? Or anyone could find the solution for this?

thanksalot!
pckben.
0
Comment
Question by:pckben
  • 5
  • 5
10 Comments
 
LVL 96

Accepted Solution

by:
Bob Learned earned 125 total points
Comment Utility
Possibility:
   Add one item, set AutoSize = false, and set the width so that the button would be aligned in the center.

VB.NET or C#?

Bob
0
 

Author Comment

by:pckben
Comment Utility
yes, i was doing like that also. But i would like to here if there's a nicer solution... (cuz this would cause some freeze when we resize the window...)
it's ok for me in VB.NET or C#
Thanks for your reply though, Bob.
0
 
LVL 96

Expert Comment

by:Bob Learned
Comment Utility
No, there isn't any "nicer" way.  Why would you want to do something non-standard like this?

Bob
0
 

Author Comment

by:pckben
Comment Utility
oops is that the standard solution?
0
 
LVL 96

Expert Comment

by:Bob Learned
Comment Utility
No, I mean why would you want to center a button on the ToolStrip (that is the non-standard way)?  Buttons should be span from either the right or the left-hand side of the ToolStrip.

Bob
0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 

Author Comment

by:pckben
Comment Utility
Ya i noe this is not standard, just a bit curiosity with a bit lazy. Actually i want to use that "nice-design" strip and its child items to put somewhere on my form but too lazy to draw by myself such a bar ^_^
i'll give you 125 points for your quickly replies, but actually i found the solution by myselft :p

pckben.
0
 
LVL 96

Expert Comment

by:Bob Learned
Comment Utility
What did you do?

Bob
0
 

Author Comment

by:pckben
Comment Utility
i also did exactly the same way as you. Put a blank lable before the button, then resize it properly
0
 
LVL 96

Expert Comment

by:Bob Learned
Comment Utility
Then, why the "C" grade?  Makes me look bad :(

Bob
0
 

Author Comment

by:pckben
Comment Utility
oops! i'm sorry, i just hoped to find a "nicer" way here, ...
^^
anyways, i'm really thankful for your help!
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
This video discusses moving either the default database or any database to a new volume.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

771 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now