bdb12
asked on
Switching between forms
Hi, learning VB 2005
Question:
In my app, I have 2 forms.
On form A, I want to click a button that directs the user to form B.
But I want to populate Form B with values entered into Form A.
How can I do that?
I tried something like this in the code for Form A
private buttonClick()
FormB.TextBox1 = FormA.TextBox1
But it doesn't recognize FormB
Thanks
Question:
In my app, I have 2 forms.
On form A, I want to click a button that directs the user to form B.
But I want to populate Form B with values entered into Form A.
How can I do that?
I tried something like this in the code for Form A
private buttonClick()
FormB.TextBox1 = FormA.TextBox1
But it doesn't recognize FormB
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
actually,
public sub ShowData(myData as string)
public sub ShowData(myData as string)
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
hmmmmmm....
in VB.NET you can just do response.redirect....is there a similar way in VB 2005?
in VB.NET you can just do response.redirect....is there a similar way in VB 2005?
ASKER
form names are pk and app framework enabled
ASKER
working now thx
put a public function into formB, like
public sub ShowData(myData)
and display your data in that function. call the function from formA, feeding it with the data you want to be displayed.