I have added a button to my form from code because I'm linking a screen from other form, and in the linked form I've to add a back button. Now I success added a button in my form, but I cant handle the btnBack.Click
Anyone guide me please?
Anyone guide me please?
VB.NET:
Dim btnBack As New Button
Dim y As Integer = 340
Dim x As Integer = 20
btnBack.Text = "Back"
btnBack.Top = y
btnBack.Left = x
Private Sub btnBack_click(ByVal sender, ByVal e) Handles btnBack.Click
MessageBox.Show("Your Button Work","Test", MessageBoxButtons.OK, MessageBoxIcon.Information)
End Sub