How to send Date from modeless Dialog to main form?

  • Thread starter Thread starter Marian Heddesheimer
  • Start date Start date
M

Marian Heddesheimer

Hi,

I have a C# main form which creates a new non-modal Dialog. From the
modal Dialog I can update data via a public attribute from the Dialog,
but how do I notify the main window that data has changed?

In MFC I just used SendMessage to send a WM_NOTIFY. Is there an
equivalent in plain c# or can I use another method to notify the main
window about changes?

Regards
Marian
 
Hi,

You can use a event: the dialog export an event and the main form hook a
method to it, therefore when the dialog fire the event the main form is
notified.

Hope this help,
 
Hi Ignacio,

You can use a event: the dialog export an event and the main form hook a
method to it, therefore when the dialog fire the event the main form is
notified.

thanks, that's what I am looking for

Regards
Marian
 
Back
Top