PC Review


Reply
Thread Tools Rate Thread

Controls disapearing after compiling

 
 
Philip Tepedino
Guest
Posts: n/a
 
      10th Dec 2003
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 Removed)


 
Reply With Quote
 
 
 
 
TheGrudge
Guest
Posts: n/a
 
      17th Dec 2003
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

"Philip Tepedino" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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 Removed)
>
>



 
Reply With Quote
 
Philip Tepedino
Guest
Posts: n/a
 
      17th Dec 2003
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

"TheGrudge" <(E-Mail Removed)> wrote in message
news:OWeC$(E-Mail Removed)...
> 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
>
> "Philip Tepedino" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > 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 Removed)
> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling User Controls in Web Deployment Project strips Attribute Marc Woolfson Microsoft ASP .NET 0 27th Nov 2008 03:36 PM
Disapearing Changes Rain Microsoft ASP .NET 1 7th Jul 2008 08:30 AM
disapearing documents CdLsRN Windows Vista General Discussion 1 2nd Jul 2008 11:39 PM
Compiling ActiveX Controls for Pocket IE =?Utf-8?B?ZXloaw==?= Microsoft Dot NET Compact Framework 0 25th Apr 2006 11:21 PM
After copying and pasting controls, compiling app removes them Ryan Taylor Microsoft Dot NET Framework Forms 1 4th Mar 2005 06:35 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:43 PM.