|
-
Sep 13th, 2005, 02:31 PM
#1
Thread Starter
Hyperactive Member
[RESOLVED] sending values to main form from other forms
I declared a public variable in my main form(startup form). then the user clicks on a button and a new form with a textbox appears. the user enters some string in the textbox and clicks a button to close the form. Now i have to show that string in the main form. how?
I cant write form1.label1.text=strresult because
'Object reference not set to an instance of the object'
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
|