Form inheritance bug

O

oschwab

When I try to inherit from a base form, sooner or later in my derived form control totally disappear (in designer and runtime) , but code concerning controls remains present and apparently unchanged


I tried serveral things (closing and reloading form,closing and reloading solution, closing and reloading VS, create a new project) notthing changes


Any idea ???????????


--------------= Posted using GrabIt =----------------
------= Binary Usenet downloading made easy =---------
-= Get GrabIt for free from http://www.shemes.com/ =-
 
P

Phill. W

oschwab said:
When I try to inherit from a base form, sooner or later in my derived form
control totally disappear (in designer and runtime) , but code concerning
controls remains present and apparently unchanged

Look for Exceptions being thrown in the Form constructor(s).
These mess up both the application at run-time and, more
importantly (to us) the Forms Designer itself.

If necessary, use two instance of the 'Studio IDE, one debugging
the other!

Open the Forms project in one (with the Designer /not/ open).
Attach the second instance to the first's process.
In the second instance, break /any/ Exception into the debugger.
Then open the Forms Designer in the first instance.

HTH,
Phill W.
 
G

Guest

I find sometimes if I change any code and I mean any in the Designer Section
of the class that inherits the base form, it can really screw things up.
 

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