Home All Groups Group Topic Archive Search About

Opening form with data from another form

Author
7 Jul 2006 7:22 AM
reidarT
How can I open a form from another form with textfields containing data from
the first form.
Like openargs in Access

reidarT

Author
9 Jul 2006 7:32 PM
James Jardine
"reidarT" wrote:

> How can I open a form from another form with textfields containing data from
> the first form.
> Like openargs in Access
>
> reidarT
>
>
>

You could overload the constructor to your form so when you Dim form as new
Form(parameters) you can pass values.  

Or you could create public properties on the form you are opening and pass
the values in when showing it. 

Dim _form as new Form
_form.Property1 = "hello"
_form.Property2 = "Goodbye"
_form.show()