Question How to get value of a public varriable on another form

nsoni

Member
Joined
Jan 6, 2008
Messages
11
Programming Experience
1-3
Hello,

I need to know that how can i get the value of a public integer varriable on another form.
Example:
I have two form named form1 and form2:

coding...Form1
Public abc as integer = 5

coding...Form2
dim frm1 as new Form1
dim xyz as integer = frm1.abc

here the the value of xyz is still 0

Can anybody help me here

nsoni
 
here the the value of xyz is still 0
That is incorrect, 'here' the value is 5.
 
Back
Top