How to call sub in vb.net?
In this tutorial you can learn how to use sub and sub procedure.
Step1:
Open Microsoft visual studio
Step2:
File newà windows form application àrename it as
Step3:
Write or copy the below code
Code:
Public Class Form1
Private SubButton1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) HandlesButton1.Click
Call callthesubmenu()
End Sub
Sub callthesubmenu()
Form2.Show()
End Sub
End Class
Step5:
Output:
No comments:
Post a Comment