Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Subclassing a Framework-level form
Message
 
To
10/03/2004 09:12:02
Filip Bruman
Kirschberg Holding
Copenhagen, Denmark
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00884795
Message ID:
00884897
Views:
9
This message has been marked as the solution to the initial question of the thread.
Filip,

>Object reference not set to an instance of an object.The error message is not uncommon and I usually know what it is that I have forgot to do, but in this case all I have done is inherited from a class. Has anyone encountered the same problem?

This error is usually caused by VS .NET trying to execute code in a form's constructor or Load...it's a design-time issue because VS .NET doesn't have access to all the run time objects it needs. I discovered this error myself the other day and have fixed the problem for the next release. VS .NET is trying to execute code in one of the parent form's Load event handler (yeah, I wish it wouldn't try <s>). I bracketed this code in a check for mmAppBase.IsRunning() and now it should work fine.

Let me know if you need an early-release of our next version.

Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform