473,382 Members | 1,791 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

MDI question - how to call other MDI child forms from a MDI chilid form?

Hi all. I have a MDI child form that is a systems maintenance form. I have
7 buttons that will be used to call 7 lookup table maintance forms. My code
to call the lookup table child forms from the child form is the problem.
How do I code it?
The MainFrame.vb is the MDI container. I tried setting that as the MdiParent
but no joy... Obviously I can't use .Me as .Me is a child form also.. So
how do I do this?

Thanks in advance..

Robert

Here is the one that calls the maintence form for Color:

Private Sub btnColor_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnColor.Click

Dim frmCOL As New frmColorMaint

frmCOL.MdiParent = GRS2.MainForm <------- this is the MainFrame.vb
that is the MDI container

frmCOL.Show()

End Sub
Jun 21 '07 #1
2 1632
Robert,

frmCOL.MdiParent = Me.MdiParent

Kerry Moorman
"Robert Johnson" wrote:
Hi all. I have a MDI child form that is a systems maintenance form. I have
7 buttons that will be used to call 7 lookup table maintance forms. My code
to call the lookup table child forms from the child form is the problem.
How do I code it?
The MainFrame.vb is the MDI container. I tried setting that as the MdiParent
but no joy... Obviously I can't use .Me as .Me is a child form also.. So
how do I do this?

Thanks in advance..

Robert

Here is the one that calls the maintence form for Color:

Private Sub btnColor_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnColor.Click

Dim frmCOL As New frmColorMaint

frmCOL.MdiParent = GRS2.MainForm <------- this is the MainFrame.vb
that is the MDI container

frmCOL.Show()

End Sub
Jun 21 '07 #2
Thank you Kerry, just what I needed..

Regards,

Robert
"Kerry Moorman" <Ke**********@discussions.microsoft.comwrote in message
news:1D**********************************@microsof t.com...
Robert,

frmCOL.MdiParent = Me.MdiParent

Kerry Moorman
"Robert Johnson" wrote:
>Hi all. I have a MDI child form that is a systems maintenance form. I
have
7 buttons that will be used to call 7 lookup table maintance forms. My
code
to call the lookup table child forms from the child form is the problem.
How do I code it?
The MainFrame.vb is the MDI container. I tried setting that as the
MdiParent
but no joy... Obviously I can't use .Me as .Me is a child form also.. So
how do I do this?

Thanks in advance..

Robert

Here is the one that calls the maintence form for Color:

Private Sub btnColor_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnColor.Click

Dim frmCOL As New frmColorMaint

frmCOL.MdiParent = GRS2.MainForm <------- this is the MainFrame.vb
that is the MDI container

frmCOL.Show()

End Sub

Jun 21 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: CJack | last post by:
hy, I have an mdi application, i create a child form and I want to know when a button is pressed while that child form is loaded. I have this code: private void frmTestBaby_KeyUp(object sender,...
2
by: Dmitri Shvetsov | last post by:
Hi, Can somebody give a quick advice? I call a new form from a main form, like: CNewForm nf = new CNewForm(); where I should insert a string into a TextBox.Text field. Then I should...
5
by: Steven C | last post by:
Hello: I've seen several recent threads on this, but I'm still not clear how to reference a *method* on one form from another. I want to add a customer in the child form, and then update the...
3
by: James Spibey | last post by:
Hi, I have an MDI application which has aboout 10 child windows. The way the app needs to work is that only one window should be visible at a time and it should be maximized within the parent...
2
by: SHAWN DEB ECKLEY | last post by:
Here is my situation... i have a parent window/ main app and i call a child form (type 1). the child form(type 1) gets information from a database. the user makes some choices and then some data...
13
by: Academic | last post by:
I have a MDI form, sometimes child forms and sometimes forms that are neither If I close the app the child forms closing and closed event happens followed by the Mdi form receiving the...
7
by: Sheikko | last post by:
Hi all, i have an application and i wan to call another program into it, like notepad, so when i minimize the notepad, or maximize, it must rest in my application. thank you
4
by: VIKKI | last post by:
hi I want to know different types way for calling child forms in a particular project.....I'm new to C# language and I'm not able to add child form in my project so plz anyone can tell me how to...
0
by: emalcolm_FLA | last post by:
Hello and TIA for any help with this non profit Christmas assistance project. I have an applicant (app history) and child (child history) tables (4 total). I need to grab the next available (in...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.