?
Solved

MDI Application

Posted on 2005-05-11
2
Medium Priority
?
202 Views
Last Modified: 2010-04-23
Hi

I have an MDI application.

I placed a button on the toolbar of the MDI Parent (frmPar).

Now when I push this button, this button should execute a function in a child form (frmchild).

How can I do this ??


Thanks,

Jerry.
0
Comment
Question by:Jerry_0001
2 Comments
 
LVL 25

Accepted Solution

by:
RonaldBiemans earned 200 total points
ID: 13975954
       For Each f As Form In Me.MdiChildren
            If f.Name = "nameofyourchildform" Then
                DirectCast(f, nameofyourchildform).yourfunction()
            End If
        Next

the function should be public
0
 

Author Comment

by:Jerry_0001
ID: 13975997
This does it.

Thx!!
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
There may be issues when you are trying to access Outlook or send & receive emails or due to Outlook crash which leads to corrupt or damaged PST file. To eliminate the corruption from your PST file, you need to repair the corrupt Outlook PST file. U…

621 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question