"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