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

J

JC Voon

Hi:

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

Thanks
JCVoon
 
C

Cor Ligthert

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
 
J

JC Voon

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
 
C

Cor Ligthert

JC,

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

Cor
 
H

Herfried K. Wagner [MVP]

JC Voon said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top