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()
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top