Hi all,
I'm trying to call a private sub in another private sub. For example ;
How can I do this?Code:Private Sub Form1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Click '// For example, When I click on the Form1 '// I want to call Button1_Click Sub. End Sub Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load MsgBox("Hi All !") End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click '// Or when I clicked Button1 '// I want to run codes in the '// Form1.Load Sub. End Sub




Reply With Quote