By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,458 Members | 1,215 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,458 IT Pros & Developers. It's quick & easy.

How to create a toolbar button at the right edge of the tool bar ?

P: n/a
Hi:

My application use tabbed interface, i need a close button at the
right edge of the tool bar, is it possible ?

Thanks
JCVoon
Nov 21 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
JC,

Did you try faking it draging a button on that toolbar in the rigth topmost
positions and set in that the anchor properties to Top and Right?

I hope that helps?

Cor
Nov 21 '05 #2

P: n/a
Cor:
Did you try faking it draging a button on that toolbar in the rigth topmost
positions and set in that the anchor properties to Top and Right?


Thanks for the reply, the button has a focus rect, which make the
interface not consistence,currently i'm using radioButon and set its
Apprerance=Button and AutoCheck=False, because my toolbar
Apprerance=Flat, so i set the radioButton FlatStyle=Popup, but it
still has a gray border around the radioButton, do u know how to
remove the gray border ?

I also has a problem on the Anchor property when set to Top and Right,
in my inherited form the button will move out of position.

Cheers
JCVoon
Nov 21 '05 #3

P: n/a
JC,

I have not a direct answer for you, but did you know that a label has as
well a click event.

Cor
Nov 21 '05 #4

P: n/a
"JC Voon" <jc*******@yahoo.com> schrieb:
My application use tabbed interface, i need a close button at the
right edge of the tool bar, is it possible ?


Add the main toolbar, set 'Dock' to 'None', reposition it and anchor it on
the top, left, and right edges. Then add a 2nd toolbar, don't dock it and
anchor it on the top and right edge. Add the button and place it
accordingly.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.