bernardmanning
Programmer
Hopefully this will be a real simple question...
if I drop a native instrinsic command button onto a native win form, I can then double click the command button and place code in it's click event eg;
and it works great...dead easy....
If I then create a button class so that all my button look the same have the same colours etc..
build the class,
add it to my controls toolbar
create a new form
drag the classed button onto a form,
I can't seem to get code into the click event as I can with the ordinary non classed button.
heres the code for my class ;
any body give me any clues?
Thanks, Bernard..
if I drop a native instrinsic command button onto a native win form, I can then double click the command button and place code in it's click event eg;
Code:
Public Class cleanform
Inherits System.Windows.Forms.Form
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
MsgBox("this is my intrisic button")
End Sub
End Class
and it works great...dead easy....
If I then create a button class so that all my button look the same have the same colours etc..
build the class,
add it to my controls toolbar
create a new form
drag the classed button onto a form,
I can't seem to get code into the click event as I can with the ordinary non classed button.
heres the code for my class ;
Code:
Public Class TestButton
Inherits System.Windows.Forms.UserControl
EndClass
any body give me any clues?
Thanks, Bernard..