Click event creating a control
Hi!
I´m creating a control with a label and a button in it.
When I add the control to a windowsproject and move to the Click event
for the button and type code there but nothing happens.
Here is my code:
Code:
Public Property InfoLabel() As String
Get
Return lblInfoLabel.Text
End Get
Set(ByVal value As String)
lblInfoLabel.Text = value
End Set
End Property
Public Event ApplyButton_Click()
Sub CauseEvent()
RaiseEvent ApplyButton_Click()
End Sub
In the windowsproject:
Code:
Private Sub Tweak1_ApplyButton_Click(ByVal sender As Object) Handles Tweak1.ApplyButton_Click
MsgBox("Click")
End Sub
But nothing happens??
Re: Click event creating a control
Got it :)
Code:
Private Sub ApplyButton_Click1(ByVal sender As Object, ByVal e As System.EventArgs) Handles ApplyButton.Click
RaiseEvent ApplyButton_Click()
End Sub