Hello!
Ben's suggestion will hold perfectly
//Tony
"Peter Duniho" <(E-Mail Removed)> skrev i meddelandet
news

(E-Mail Removed)...
> On Tue, 05 May 2009 08:45:00 -0700, Ben Voigt [C++ MVP]
> <(E-Mail Removed)> wrote:
>
>> [...]
>>> If I for example change the DataGridView in one of the form and then
>>> push the save button
>>> how do I best inform the other form that it has to reload the
>>> DataGridView because the data(textfile)
>>> has been changed.
>>
>> If you want to reload when the textfile changes, then you'll need
>> FileSystemWatcher. Textfiles can be changed by any program, not just
>> yours.
>
> Or as an alternative viewpoint: if you are using a text file to
> communicate between two forms, and expect for that text file to be changed
> by anything else, there is probably a problem with that particular design.
>
> In other words, if you feel that Ben's advice isn't useful, there's
> probably something wrong with the approach at a more fundamental level.
>
> Pete