473,480 Members | 1,663 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to reference to the owner or container of a component?

Hi,
I want to find the owner and/or container of a component. It might be
control or other kinds of components.
I have tried with many variants of code like "this.Container." or
"this.Owner." etc. without success.
Regards
M Shafaat


Nov 17 '05 #1
2 1826
M Shafaat wrote:
Hi,
I want to find the owner and/or container of a component. It might be
control or other kinds of components.
I have tried with many variants of code like "this.Container." or
"this.Owner." etc. without success.
Regards
M Shafaat


this.Parent
Nov 17 '05 #2
Thank you MuZZy for your reply, which is a good help. But "this.Parent"
functions only for controls. I am looking for a more common solution which
covers components and even other objects.

Regards
M Shafaat

"M Shafaat" <po***@comhem.se> wrote in message
news:a1*********************@newsc.telia.net...
Hi,
I want to find the owner and/or container of a component. It might be
control or other kinds of components.
I have tried with many variants of code like "this.Container." or
"this.Owner." etc. without success.
Regards
M Shafaat

Nov 17 '05 #3

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

Similar topics

4
1771
by: Dean Mitchell | last post by:
Hi, I have a simple STL map container that maps a stl string to a structure as follows. typedef std::map<std::string,TASKLIST> PCLIST; In a class I have a member variable that is defined as...
8
1653
by: JKop | last post by:
Having decided not to use macros at all in designing my reseatable references, and having looked through the list of overloadable operators and combinations of them, I've settled on the following...
1
4874
by: Viorel Ghilas | last post by:
Hi all I have a list of Componet objects and put them in Containner, after container is disposed then components doesn't disposed I write some code example Component c = new Component(); ...
2
1251
by: M Shafaat | last post by:
Hi! Consider the following: Object A is a member of Object B. Object A has a known identifier. Object B has an unknown identifier. How do we reference Object B using Object A? I have tried...
2
9753
by: Sam | last post by:
Please help! I want to create a user control that can act as a container for other controls (like a panel or a groupbox). The control will consist of a panel that acts as the container for...
6
16420
by: Tom | last post by:
This seems like a dumb question, but here goes: In my own VB.NET user control, how do I gain access to the user controls parent? (i.e. the form that is hosting the user control) For instance, in...
0
1617
by: Brian Henry | last post by:
Ok whats going on here... got a couple problems... this is relevant now to this group since .NET 2.0 is finally RTM 1) draws really slow when making it a large form (resizing speed is jerky) to...
10
1721
by: Belebele | last post by:
Suppose that I have a method that returns references to "elements" in an iterator, and a method to advance the iterator: class Element { /* ... */ }; class Iterator { public: Element&...
1
8327
by: Don | last post by:
I'm getting the following exception displayed in the task list at design time for my project: "Code generation for property 'Controls' failed. Error was: 'Object reference not set to an...
0
7037
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
7034
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,...
1
6732
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
6886
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5324
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,...
1
4768
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...
0
4472
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
2976
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1294
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.