473,396 Members | 1,676 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,396 software developers and data experts.

access the creator object of a class

I am currently in a black hole looking for a way accessing the creator
object of a class within the class. Something like parent of winform
controls.

Thanks for you time

Max
Nov 15 '05 #1
2 1489
Max,

You aren't going to be able to get this unless your child takes a
reference to the parent that created it. Either that, or you need to have
some sort of class factory that creates your objects, which will hold
references to the objects that it creates.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Max-Ph. Blickenstorfer" <ma*@mbs-software.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
I am currently in a black hole looking for a way accessing the creator
object of a class within the class. Something like parent of winform
controls.

Thanks for you time

Max

Nov 15 '05 #2
Thank you Nicholas,
I need to use a server side db connection and pass this in some way to the
client-activated remote objects (who are created server side). Ideally I
could catch/control the object creation in the host application (how that
then). The host app does create the db connection and registers the service.
So basically if there is possibility to trap a create-object request in the
host app we could assign the connection through a setMethod before returning
the ref. to the proxy. ???

Best Regards
Max
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:Oy**************@tk2msftngp13.phx.gbl...
Max,

You aren't going to be able to get this unless your child takes a
reference to the parent that created it. Either that, or you need to have
some sort of class factory that creates your objects, which will hold
references to the objects that it creates.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Max-Ph. Blickenstorfer" <ma*@mbs-software.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
I am currently in a black hole looking for a way accessing the creator
object of a class within the class. Something like parent of winform
controls.

Thanks for you time

Max


Nov 15 '05 #3

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

Similar topics

0
by: Juan Cabanela | last post by:
I am a relatively new user to MySQL running version 4.0.17 on MacOS X 10.3.3 (this is the "current version" installed by the Fink package manager). I login to mysql as root mysql -u root -p ...
3
by: Kevin Steffer | last post by:
Hi group I have a webform which I want to make an ftp connection for a filetransfer from. The thing is when I use the WebRequest class it says "The URI prefix is not recognized" and my URI is...
13
by: Mark | last post by:
I am looking for a switchboard creator alternative for my MDB. Can anyone help me? Thanks for your help, Mark
3
by: Mike Marriott | last post by:
Hello all, Newbie Here (please go easy, you cant make me fell more stupid than I allready do) I have a small, but complex data base, in Access 2000, that I am creating, I have allready...
6
by: Guoqi Zheng | last post by:
Sir, Some times, I developed class library to use on other sites. When I am testing the application, I often get an error of access is denied to that assembly. How can I check the problem? ...
2
by: John B | last post by:
I have a situation where I need to control the creation of a class. I need to be able to create it externally but only by classes that I define. To accomplish this I thought of the following...
1
by: jliebman | last post by:
All, I recently started at a company that has a number of older MS Access 97 database applications that support production and order fulfillment. There is one database with which I have the...
2
by: wilkinson.philip | last post by:
I have a javascript object which dynamically generates a table adding, deleting and moving rows as the user clicks on buttons or links. Problem is when I generate a table row and add the javascript...
3
by: alan | last post by:
Hello all, I'd like to know if there is a nice method of defining a functor creator which accepts an N-ary function and returns a functor based on that function. For example I have a function:...
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:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
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
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
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
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,...

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.