Controls disapearing after compiling

P

Philip Tepedino

Hi,

I'm having a very strange bug.
It seems that after I compile a Release version of my code, the
user-controls that I'm using (created by me.. different project, same
solution, compiled first) disapear!
When I load a form they are all missing the controls and I get tons of
errors. If I don't open the form (in design mode) and try to run it, it runs
fine, but once I open it, if I save the form, I'm screwed!

Has anyone experienced this problem? is there a way around it?

Thanks in advance,

Philip Tepedino
Siemens Westinghouse Generation Services
(e-mail address removed)
 
T

TheGrudge

I have experienced this. Very annoying!

if you are modifying a user control, make sure that any form that has that
control on it is closed within visual studio. I think what happens is if you
modify the control, attempt to compile, and if there is a bug/error, any
form that has that control on it gets screwed up. It actually removes all of
the code from InitializeComponent. I don't know why it does this, but I got
into the habbit of closing all the forms from design view whenever I modify
my user controls.

HTH
 
P

Philip Tepedino

I'll give that a try.
I wish MS had some info on this and some kind of way around it!

Thanks for the help,

Philip
 

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