I have 2 forms. One is a typed list having 3 controls (fields) loaded from access database (copied to project as part of .xsd).
The values in this list represent recommended values of items and will also be applied to another 3rd form eventually. In the 2nd form there are 3 values which are populated (a) from dropdown lists, (b) with required input or (c) can be taken from form 1. Can anyone offer some help as to how to do option (c) without losing other two options? I hope this makes sense.
Centorpe
0
Light Poster
Recommended Answers
Jump to PostYou can access the controls on Form1 from Form2 by fully qualifying them as (for example)
Form1.TextBox1.Text
Jump to PostIf the valuies taken from form1 are to be default values that the user can change as needed, one option is to overload the Show method and send the values directly to the second form when the calling form calls the Show method.
All 8 Replies
Reverend Jim
4,780
Hi, I'm Jim, one of DaniWeb's moderators.
Moderator
Featured Poster
tinstaafl
1,176
Posting Maven
Centorpe
0
Light Poster
tinstaafl
1,176
Posting Maven
Centorpe
0
Light Poster
tinstaafl
1,176
Posting Maven
Centorpe
0
Light Poster
tinstaafl
1,176
Posting Maven
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.