473,803 Members | 3,416 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 983
* "YYZ" <notapplicabl e> 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" <notapplicabl e> 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.TopLevelCont rol 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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
2186
by: Tom | last post by:
I'm calling an external .js file with plain html links for my navigation text area (so I can update it across the site more easily), but the links are "inheriting" my css hyperlink qualities. I specifically want them NOT to be bold. What code would I add into my external .js file to change the font of the navigation links to NOT bold? I tried sticking in <font="normal"> in front, but that didn't work. I'm a JS newbie, by the way. ...
7
4968
by: Vish | last post by:
Hi, I have a base form from which i want all of my forms to inherit from. The base form has three buttons anchored to the bottom right of the base form. When i first inherit a new form from the base form everything seems to be fine. The 3 buttons from the base form show up on the bottom right of the inherited form. But as i started adding new controls and building it i found that the 3 buttons from the base form disappeared. When i...
1
1281
by: Fabiano Sidler | last post by:
Hi folks! As stated in subject, how do I decide wether to inherit <type 'type'> or <type 'object'>? Whenever I want to intantiate my derived type, I taked <type 'type'> here, but inheriting from <type 'object'> consequently would be reasonable in cases of pure static objects (i.e. objects/types using staticmethods exclusively), for whose I would prefer toplevel code outside a class definition in python, since python does not oblige...
24
2964
by: toton | last post by:
Hi, I want to have a vector like class with some additional functionality (cosmetic one). So can I inherit a vector class to add the addition function like, CorresVector : public vector<Corres>{ public: void addCorres(Corres& c); //it do little more than push_back function. }
0
9703
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9565
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10550
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10317
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10295
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7604
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6844
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5633
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3799
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.