When you look at the system defined controls like Button, they have
predefined sizes inherited from System.Drawing.Size. This Point has only 3
overloads such as
1) Default - resulting 0 width and 0 length
2) System.Drawing.Point( oneInputParameter) - resulting width = length =
oneInputParameter
3) Width and length - both as the different input parameters
So, by looking at the above information, I doubt you can over ride the shape
information.
But apart of that, you still can do the intention behind having a separate
shape.
Step 1) First create an ENum of all shapes
Step 2) Create a property for the derived button as "DifferentShape"
Step 3) At the property try to change the shape of the button with a kind of
image on the button at runtime, with the help of System.Drawing dynamically
HTH
Chakravarthy
<ca*******@yahoo.comwrote in message
news:cb**********************************@s19g2000 prg.googlegroups.com...
Should be easy don't know y i cant get it to work please help.
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
public class mybutton : Button
{
}
}
I also need to find out how to override the properties to create a
different shape eg. a round button.Thanks