multiple forms in vb.net -
We may have a global variable which can be manipulated in many ways
You can access a variable from one form, if it has been declared as public
If you are defining it in Form 1 and want to use it in Form 2, then you can call as a variable from within Form 2 - Form 1. & Lt; variable_name >
Take an example -
Form 1 code
Public class form 1
as the public = 10 private sub form 1_load (system.byVal Sender as System.Ovgen.Avent.org). MyBase.Load Form2.Show () and sub
and class
form 2 code public class form 2
private sub form 2_load (form of system In the form of a deputy sender, object and system. Taarji) MyBase.Load MsgBox (form L.a) End Sub
Finally Class
Comments
Post a Comment