Inherited Form

  • Thread starter Thread starter RRiness
  • Start date Start date
R

RRiness

I'm trying to use a template form I created. When I add
an inherited form to my project, I get the error:

Object reference not set to an instance of an object.

when the inherited form is displayed in the designer.
Last week I used the same template and didn't have any
trouble creating inherited forms. I can look at the new
form in code view, and don't see any obvious errors. Help!
 
Hi,

If you look through the past few days posts you may find
that I have asked a similar question with no luck...

However, today I seem to find a solution to my problem.
When I added functionality to my "Base" form, the IDE
suddenly stopped showing "Inherited" forms in Design view
with wierd errors and no help associated with them.

My problem was that within a "Load" event of the "Base"
form I called a generic procedure that queried the
Registry to set the form position, and the function was
not working properly at design time (it worked perfectly
fine when compiled though). So I put and error handler
around the function - just skipped the error - and now it
works fine even in Design.

Hope this helps...
 
Back
Top