Hi Greg,
I am doing something similar.
The way I approached it was to create a Data Access Layer.
When the application is opened, it retrieves data from a Database (DB2) into
a DataSet and then saves it into an XML file. If the Database is unavailable
it retrieves the data from the saved XML file into the DataSet.
The main form references the Data Access Class and uses the DataSet. The
timer on the main form tests the currency ( an hour in my case) of the data
and will call the Data Access Class to update the data.
The main form (Purchase Orders) allows the User to call up the Purchase
Order Details form which uses a different DataTable in the DataSet. Whenever
this form is opened its data is current as the main form has called the Data
Access Class to update all data. Both forms use Data Grids bound to
DataViews based on the Data Tables in the DataSet.
Doug
"Greg Chu" <gr******@wendys.com> wrote in message
news:uD****************@tk2msftngp13.phx.gbl...
Hi, all,
I have form which displays a data set and also a timer to read data every
one minute from a xml source and refresh the form.
The user click on a button on the form and bring up another form also
displays the same data set.
How do I send an event to tell the 2nd form that it also need refresh when
the first form runs the refresh routine?
My thinking is it should use "raise" event to tell the 2nd form that it is
time to refresh to screen.
Any one has done this before? Please help!
Thanks!
Greg