|
-
May 29th, 2007, 04:22 AM
#1
Thread Starter
Member
[2005] URGENT: How to use a variable's value from one form in another??
HI Guys!
I rilli need your help on this one. I have to finish my code and i am stuck pretty bad.
I have a combobox in one form in my app. i need to use its selectedindex value in another form in the same app. I am not able to do that..
i tried form1.combobox1.selectedindex but that just returns -1
and i tried to store its value in a public declared integer variable and use that variable in the second form, this returns 0.
Please help me out.. i think i might not know exactly how to make a variable declared in one form available in another form.
thx
Abhilash
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|