Opening form with data from another form

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • reidarT

    #1

    Opening form with data from another form

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

    reidarT


  • James Jardine

    #2
    RE: Opening form with data from another form



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

    Comment

    Working...