473,399 Members | 3,888 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,399 software developers and data experts.

acess a control in a MDI parrent form from a MDI child form

If there's a control in a MDI parrent form , how can I make it accessable in
a MDI child form?
Is there any sample code?
Nov 16 '05 #1
2 1523
use this.MdiParent to reference the parent MDI form.

from there you can use the Controls collection or methods such as
GetChildAtPoint().

Or you could cast it to the type of your parent form, i.e.

MyMdiForm myform = (MyMdiForm)this.MdiParent;

then you can access any public property/method of your mdi parent.

HTH
Sam

"authorking" <au************@hotmail.com> wrote in message
news:OT****************@TK2MSFTNGP10.phx.gbl...
If there's a control in a MDI parrent form , how can I make it accessable
in a MDI child form?
Is there any sample code?

Nov 16 '05 #2
use this.MdiParent to reference the parent MDI form.

from there you can use the Controls collection or methods such as
GetChildAtPoint().

Or you could cast it to the type of your parent form, i.e.

MyMdiForm myform = (MyMdiForm)this.MdiParent;

then you can access any public property/method of your mdi parent.

HTH
Sam

"authorking" <au************@hotmail.com> wrote in message
news:OT****************@TK2MSFTNGP10.phx.gbl...
If there's a control in a MDI parrent form , how can I make it accessable
in a MDI child form?
Is there any sample code?

Nov 16 '05 #3

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

Similar topics

3
by: Not Me | last post by:
Hi, Just trying to get my head around tab controls, is there anywhere which would describe the structure of how they work? I seem to be ok so far, being able to check which page I'm on etc......
11
by: Sagaert Johan | last post by:
I have made a custom control that draws a rectangle when the mouse is down, and does nothing when the mouse is up. I set/reset a flag in MouseDown/Mouse up and use this to do the drawing in the...
2
by: authorking | last post by:
How to access a control in another form and how to make a form become a MDI container.
0
by: authorking | last post by:
If there's a control in a MDI parrent form , how can I make it accessable in a MDI child form? Is there any sample code?
1
by: Jorge Ponte | last post by:
hi I have a Web User Control (ascx) - lets call it "My_WUC" - in a Web form. In that WUC I want have a textbox and a button. I want to click on the button and open a popup (I use javascript for...
4
by: Maarten | last post by:
sry for the title of previues message Worksheet(formcount).MdiParent = Form1 i get an erro by form 1 he sais it is a type and con't be used as expresion1 but when i run this code from the MDI...
4
by: Maarten | last post by:
i have a parrent form, form1 and i child form, form2 when i press a button in form2, tha data of the text1 of form2 must be places in text1 of form1 something like form1.text1 =...
7
by: Siv | last post by:
Hi, I have an MDI application that uses a generic "ShowPage" routine in a module that is called when I want to display a child form. The basic idea is that in the module I have declared each form...
15
by: rizwanahmed24 | last post by:
Hello i have made a custom control. i have placed a panel on it. I want this panel to behave just like the normal panel. The problem i was having is that the panel on my custom control doesnt...
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: 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
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.