Call a form sub from another form
I have a form
Friend Class frmOrganigramma
Inherits System.Windows.Forms.Form
with a sub
Sub OutList()
How can I lau开发者_运维技巧nch this sub from another form?
By passing an instance of the first form to the constructor of the second form (also make sure the method is public) or by externalizing this function in some other utility class which you would use from both forms.
精彩评论