Opening form with data from another form

  • Thread starter Thread starter reidarT
  • Start date Start date
R

reidarT

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

reidarT
 
reidarT said:
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()
 
Back
Top