Monday, July 25, 2011

Create Custom Button in Form

Create Custom Button in Form VB net Csharp
No need to Inherit from Button if you want a button with a completely custom appearance.
The following class defines a Custom Button which can be set as a forms AcceptButton or CancelButton, but which is inherited from Control rather than Button. It also includes a custom TypeEditor to allow selection of corners to be rounded.

Note: that this example needs a reference to System.Design.dll since it uses a custom TypeEditor

VB net Sample:



CSharp Sample:



by: Mick Dohertys'

No comments:

Post a Comment