Link to home
Start Free TrialLog in
Avatar of diablo089
diablo089Flag for United States of America

asked on

Share Live Variable Changes Between Form Windows

I'm wondering how to make sure my forms have "live" links to variables in my other forms. I have a datagridview on one form where I make some selections, then I hit a button, and another form pops up displaying that information. If I select the right things on the first form and open the second, all is well. If I forget to select something, or try to change something selected in my datagridview after the second form is opened, the second form does not have the current information. I'm pretty sure I've just got a situation where the second form only "sees" the information from the first form that was present at the time the second form was opened.

How do I best remedy this so that the most up to date information is available to the second form?
Avatar of GMGenius
GMGenius
Flag of United Kingdom of Great Britain and Northern Ireland image

How is the second form accessing the information in the datagrid? on the first form
Avatar of diablo089

ASKER

In the form of:

(Name of Form).DataGridView1.Rows(index).Cells("Cell Name").Value
ASKER CERTIFIED SOLUTION
Avatar of GMGenius
GMGenius
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Other option Reffering also to my first comment is to open the second form as dialog..so the user does not have the chance to change something in the first form ..