how to make ToolStripButton aligned in the center of ToolStrip?

Is it possible? Or anyone could find the solution for this?

thanksalot!
pckben.
pckbenAsked:
Who is Participating?
 
Bob LearnedConnect With a Mentor Commented:
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
 
pckbenAuthor Commented:
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
 
Bob LearnedCommented:
No, there isn't any "nicer" way.  Why would you want to do something non-standard like this?

Bob
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
pckbenAuthor Commented:
oops is that the standard solution?
0
 
Bob LearnedCommented:
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
 
pckbenAuthor Commented:
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
 
Bob LearnedCommented:
What did you do?

Bob
0
 
pckbenAuthor Commented:
i also did exactly the same way as you. Put a blank lable before the button, then resize it properly
0
 
Bob LearnedCommented:
Then, why the "C" grade?  Makes me look bad :(

Bob
0
 
pckbenAuthor Commented:
oops! i'm sorry, i just hoped to find a "nicer" way here, ...
^^
anyways, i'm really thankful for your help!
0
All Courses

From novice to tech pro — start learning today.