Hi,
I have created a UserControl which effectively wants to behave like a button but look different (made up of 3 graphics). The reason for this is that I wish to use the same style of button in various places but obviously with different text so have used a process of using a table/row/cells to create the effect and put the label (as a method) in the centre cell.
However, I know you are able to have "things" inherit from other "things" so was wondering whether I could inherit my usercontrol from a button to keep the existing functionality i.e. the Button1_Click event etc. This would save me having to put hyperlinks around my UserControl in order to make an event but also will ensure I can do other things than just call other forms...
Any help is much appreciated.
Cheers,
Woody.
I have created a UserControl which effectively wants to behave like a button but look different (made up of 3 graphics). The reason for this is that I wish to use the same style of button in various places but obviously with different text so have used a process of using a table/row/cells to create the effect and put the label (as a method) in the centre cell.
However, I know you are able to have "things" inherit from other "things" so was wondering whether I could inherit my usercontrol from a button to keep the existing functionality i.e. the Button1_Click event etc. This would save me having to put hyperlinks around my UserControl in order to make an event but also will ensure I can do other things than just call other forms...
Any help is much appreciated.
Cheers,
Woody.