refresh data on form

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
 
C

Cor Ligthert[MVP]

Gery

Use dataBinding.

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

Cor
 
C

Cor Ligthert[MVP]

Gery

Use dataBinding.

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

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top