469,913 Members | 2,588 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,913 developers. It's quick & easy.

Further Inheriting issue

YYZ
I've got a form in a class library, form named frmPCGGen. I'm inheriting from
this form (for some base functionality) in a different project. When I inherit
from the form, I obviously give it a different name, frmTest for example.

In the code frmPCGGen, is it possible to know the name of the derived form, ie,
frmTest?

Matt
Nov 20 '05 #1
2 875
* "YYZ" <notapplicable> scripsit:
I've got a form in a class library, form named frmPCGGen. I'm inheriting from
this form (for some base functionality) in a different project. When I inherit
from the form, I obviously give it a different name, frmTest for example.

In the code frmPCGGen, is it possible to know the name of the derived form, ie,
frmTest?


No.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #2
YYZ
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:2i************@uni-berlin.de...
* "YYZ" <notapplicable> scripsit:
I've got a form in a class library, form named frmPCGGen. I'm inheriting from this form (for some base functionality) in a different project. When I inherit from the form, I obviously give it a different name, frmTest for example.

In the code frmPCGGen, is it possible to know the name of the derived form, ie, frmTest?


No.


In the Locals window, for frmPCGGen, there is an object/property called
TopLevelControl, and it has a Name property that is the name that I want. There
seems to be no way to access this since TopLevelControl doesn't showup in
Intellisense. Just for kicks I kept typing it in, and after you assume
me.TopLevelControl and hit ., then it pops up a list of properties, one of which
is Name, which works for me.

Matt
Nov 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

By using this site, you agree to our Privacy Policy and Terms of Use.