In Visual Basic program coding, you may encounter a point where you want to refer the variable from another form within a program.
It is very simple. We just need to write the code as follows:
If you need to import the value of n from form 1 then in form 2 you need to write:Labelvalueofn.Text = Form1.n
This will apply to all the variables and arrays. If you have any questions please leave comments.
It is very simple. We just need to write the code as follows:
If you need to import the value of n from form 1 then in form 2 you need to write:Labelvalueofn.Text = Form1.n
This will apply to all the variables and arrays. If you have any questions please leave comments.