Skip to main content

Calling Click Event from a Control in .NET

Event in .NET have this thing (not sure what to call it :D)

Private Sub ControlName_Click (ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ControlName.Click

so whenever u want to call the method inside it..u need to passing something like this
ControlName_EventName (nothing, nothing)
or create another function inside it then call that function from elsewhere

however, i just found out yesterday that u can use PerformClick() method that call the click event :D
ControlName.PerformClick()


the magic will begin :D
CU

Comments