need help with 2 winforms

  • Thread starter Thread starter Stan Sainte-Rose
  • Start date Start date
S

Stan Sainte-Rose

Hi,

Newbie I am, I need to understand something with vb.
I have a winform (A) where the user fills out some datas.
On this form, I have a combo box where he can select an item.
If the item doesn't exist, I would like he creates it by clicking on a
button.
At this point, I open a new winform (B) where he can do it.
So my question is, How can I retrieve this new data on the winform (A).
The new data have to be added on the combobox and the selecteditem must be
this data.
To be more clear, the winform (B) can be also called by another winform (C).

Stan
 
Stan,
If you think about it, a form is just another object. Objects
have properties and methods. You can add methods to retrieve properties from
your second form or simply retreive them from the form if they are Public
members. using

FormObject.PropertyName

Regards - OHM
 
* "Stan Sainte-Rose said:
Newbie I am, I need to understand something with vb.
I have a winform (A) where the user fills out some datas.
On this form, I have a combo box where he can select an item.
If the item doesn't exist, I would like he creates it by clicking on a
button.
At this point, I open a new winform (B) where he can do it.
So my question is, How can I retrieve this new data on the winform (A).
The new data have to be added on the combobox and the selecteditem must be
this data.
To be more clear, the winform (B) can be also called by another winform (C).

<http://www.google.com/[email protected]>
 
Back
Top