Results 1 to 3 of 3

Thread: Disappearing controls

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 2002
    Posts
    195

    Disappearing controls

    Has anyone ever had a problem with controls disappearing off of forms when you compile the project? Mine is doing the same, for some reason.

    The initialisation code is still in InitializeComponent, but for some reason the code that adds the control to the form is getting removed.

    Any know what the problem could be? I'm using VS .NET 2003.
    Using Visual Studio .NET 2005

  2. #2
    Addicted Member
    Join Date
    Feb 2002
    Location
    closed
    Posts
    196
    i've had similar. After deleting controls from the designer i still get the code to wire up events etc. left behind and i have to tidy it up manually.

    guess its just 'one of those things'

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Nov 2002
    Posts
    195
    Thanks for your reply, but this is different to what you describe. The compile is actually removing the controls from the form, it seems to be removing the code in the InitializeComponent function that adds the controls to the form (this.Controls.Add (..)). All the other code is left behind, and I can't work out why it is happening.
    Using Visual Studio .NET 2005

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width