0
Reply

UserControl button not behaving as a button in a Windows Form

Emmery Chrisco

Emmery Chrisco

Sep 3 2011 2:17 AM
1.2k
Greetings Earthlings,
I have created a button in a UserControl. I have added that button to a WindowsForm in another app and added a buttonclick event to the code. When running (debugging) the app and clicking on the button; nothing happens. It doesn't act like a button at all.

The code for the button click event in my test app is as follows:

[code]Private Sub Element1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Element1.Click
MsgBox("The button has been clicked")
End Sub[/code]

Attachment: amerigoware.zip