A form is a class like any other class. If you want to do something to it from outside you must add a public property or method to it, which the outside world then will access.
If you add a public sub method to a classB then other classes can use it. If you define the signature of that method to use a paramter, then other class can pass a variable to this parameter and classB can just take the given parameter and use it as a local variable. You need to read your first VB book (!! ), have a look in our Books section for possible reading suggestions.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.