refresh data on form

  • Thread starter Thread starter gerryR
  • Start date Start date
G

gerryR

Hi

I'm working on a fairly simple app comprising of 4 forms.

On the 1st form it shows some stats from 2 txt file it links too (how many
lines etc).

On Form 2 it allows you to add info to one of the txt files.

I open Form 2 when wanting to add another record using Form2.ShowDialog()
When I've added the link and clicked save I close form2 with Close(). The
the focus is back on form 1

Is there anything I can do to automatically refresh form1 so that the stats
update once I close form 2?

Thanks
Gerry
 
Gery

Use dataBinding.

Be aware that it is good practice to close a showdialog form with dispose.
It has unmanaged resources.

Cor
 
Gery

Use dataBinding.

Be aware that it is good practice to close a showdialog form with dispose.
It has unmanaged resources.

Cor
 
Back
Top