Inherited Form

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!
 
S

Sergey Poberezovskiy

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...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top