Button - No border

  • Thread starter Thread starter Keith
  • Start date Start date
K

Keith

I would like to create my own custom button control. I
want the button to be able to change color - and/or - make
the border transparent.

I know the OpenNETCF ButtonEx has these properties, but I
was hoping to create my own control. Could someone steer
me in the right direction with some advice. Perhaps you
could refer me to some web links or MSDN articles that
refer to custom controls.
I'm hoping this is somthing relatively easy - but maybe
I'm wrong.

thank you.
 
Keith,

The way in which ButtonEx controls the border is by creating a control
derived from System.Windows.Forms.Control and overriding the OnPaint event
so that we have the ultimate say in how the control is drawn and displayed
to the user.

Creating your own button isn't a hard task. Check out some of the links
given by the other responders for more info.

--Neil
 
Krzysztof - I'm still stuck. I wanted to see if I could
see the code you created. What is your email address - I
tried the one posted - and it bounced.

thanks.
-----Original Message-----
Hi!

Yes, I think that's easy ;) Some useful links:

http://www.codeproject.com/cs/miscctrl/PocketPCColourBtn.a sp
url=/library/en-us/dnroad/html/road11272002.asp
oc/picturebutton.aspx


If you will have any problems, mail me. I'll send you my
custom button control (very simple) code.
 
Back
Top