|
-
Feb 28th, 2006, 02:43 AM
#1
Thread Starter
Junior Member
[RESOLVED] Trouble understanding this Scope problem
I'm using Visual Studio .NET 2003 to write a SmartDevice Application.
Here's my problem:
I have two forms (Form1 and Form2); Form1 is the main application where all of my data is displayed and Form2 is a Data editor. When I'm finished editing the data with Form2, I want Form2 to update the ComboBoxes in Form1 with the newly added Data. But from Form2 code Form1.ComboBox1.Text cannot be accessed.
I tried calling a Friend Sub ChangeComboBox() placed in a Public Module to access the other form, but that doesn't include Form1 in it's scope either!!!
-
Feb 28th, 2006, 02:46 AM
#2
Re: Trouble understanding this Scope problem
Read the first link in my signature.
-
Feb 28th, 2006, 02:50 AM
#3
Thread Starter
Junior Member
Re: Trouble understanding this Scope problem
Thanks, this is good stuff! I'm reading Sams Teach yourself Visual Basic .NET in 21 Days to get myself from VB6 to VB.NET but the section on scope is far from sufficient for me. I appreciate the link!
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
|