Computing.Net > Forums > Programming > Inheritance not working as planned

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Inheritance not working as planned

Reply to Message Icon

Name: BlueMan
Date: March 7, 2008 at 13:50:51 Pacific
OS: Windows XP
CPU/Ram: Intel 2Gbyte
Product: other
Comment:

Hi,

I would like to have member data and functions be available to functions in a form class Form2 that was instantiated in a form class Form1.

I am using managed C++ in the forms .net visual c++ environment.

Any help or ideas would be most appreciated.

Thank you in advance.



Sponsored Link
Ads by Google

Response Number 1
Name: Razor2.3
Date: March 9, 2008 at 06:37:23 Pacific
Reply:

Okay, so make Form2 inherit from Form1.

Unless you want to reach the data housed in Form1. If that's the case, make Form2 a friend of Form1 and pass a pointer to Form2, pointing to Form1.


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Inheritance not working as planned

Stored Procedure not working if OLE www.computing.net/answers/programming/stored-procedure-not-working-if-ole/10101.html

PHP Not Working on Server www.computing.net/answers/programming/php-not-working-on-server/4257.html

right click and copy paste not work www.computing.net/answers/programming/right-click-and-copy-paste-not-work/17468.html