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 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.
Jump to PostIn the second form add the overloaded method something like this:
Public Overloads Sub Show(input As String) TextBox1.Text = input Me.Show() End Sub
Then in the calling form, call it something like this:
Dim NewForm2 As New Form2 NewForm2.Show(TextBox1.Text)
You can …
All 8 Replies
Reverend Jim 5,259 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.