By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,850 Members | 967 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,850 IT Pros & Developers. It's quick & easy.

Talking with an open form

P: n/a
Hi there,
just a short question. How can I get access to a open form (is also
the MDI parent)? <FORMNAME>.<FUNCTION> does not work but I have to
call a method in the mainForm of the Application to start a
taskbar-Notification e.g.

Thanks for an short answer!

Daniel
Nov 15 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"Daniel Diehl" <da****@mediaworker.net> wrote:
How can I get access to a open form (is also the
MDI parent)?
<FORMNAME>.<FUNCTION> does not work


'this.MdiParent' retrieves the parent of an MDI child form.

You will have to cast it to the type of the parent form. For example, if
your main form's class is called frmMain, you might write:

frmMain frm = (frmMain) this.MdiParent;
frm.Text = "this will change the caption";

P.

--
www.CL4.org
Nov 15 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.