Further Inheriting issue

  • Thread starter Thread starter YYZ
  • Start date Start date
Y

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
 
* "YYZ said:
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 said:

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
 
Back
Top