Non-Clickable Button (Use button only as a label)

Hello,

What would I need to override to make a button non-clickable? Basically I just want to use the button for its office 2007 styles.

The attached image will better clarify how I want to use the button..I just want it to be a static label.

I know I have to override the MouseHover and MouseDown events but what code would I put it so that nothing is registered etc.

Thanks

buttonaslabel.zip

1 Reply

AR Alan Read July 9, 2007 12:25 AM UTC

I figured it out.

At first I was going to create a custom control from buttonAdv but then I figured out that if I set the following things:

SuspendMouseState();
TabStop = false
keepFocusRectangle = false;

It works out like I want it too.

Thanks

Loader.
Up arrow icon