Hello, Thank you for reading this post.
Please forgive my ignorance. This may be a simple question but am having
trouble finding a straight answer.
I need pass data from my Child Window back to my parent window. What is the
best way to do this?
In C++ I would do this:
MainDlg * dlgParent; // in child's header
......
ChildWindow dlg; // in MainDlg
dlg.dlgParent = this;
dlg.doModal();
...........
then I could access everything directly:
dlgParent->userName = "USERNAME"; // in Child window
dlgParent->password = "PASSWORD";
I tried using the 'this' pointer and catching a ref to it in C#, but the
compiler doesn't let me do that.
Any ideas? Thank you all.
Rob K