Re: Controls disappear from designer...

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Aaron Smith (thespirit-1-_at_smithcentral.net)
Date: 12/02/04


Date: Thu, 02 Dec 2004 21:12:20 GMT

Herfried K. Wagner [MVP] wrote:
> "Aaron Smith" <thespirit-1-@smithcentral.net> schrieb:
>
>> I have a problem... Have a form, made some changes.. now all the
>> controls are gone. I didn't make any changes to the designer generated
>> region.. I'm not really sure what happened to them, but this has
>> happened before where one or two will disappear.. They are still in
>> the code too.. And if I try to add a new control with the same name,
>> it says it exists... Any ideas?
>
>
> Maybe the designer lost the 'Me.Controls.AddRange(...)' line that adds
> all the controls to the form. Make a backup of the form and check if
> the controls are added to the form's 'Controls' collection and add the
> line if it is missing.
>

I think you are right.. And I think I know what happened... I had three
forms that were inheirited from another form and that form had a panel
on it.. I got rid of the panel and rebuilt the app by accident.... I bet
that did it... ugh. This sucks.

-- 
---
Aaron Smith
Remove -1- to E-Mail me. Spam Sucks.


Relevant Pages

  • Re: Does C#.Net support Layout managers?
    ... make much sense to me to rely on the designer for some controls, ... designer cannot help you complete. ... I seem to use generic Lists. ... The code I'm specifically talking about is the layout code. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: dynamic windows form
    ... ' This call is required by the Windows Form Designer. ... ' Add any initialization after the InitializeComponent() call. ... I don't know if I would call it flickering, but parts of some controls get ... I suspend layout for the form and the panel. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Deriving - .NET example
    ... A Form class has fairly large interface which can be used to manipulate the window. ... This includes methods/properties such as changing window position/size, setting its style, back color, caption etc. as well as adding child controls. ... When designing custom form via MS Visual Studio designer, the corresponding C# code is designed which uses the aforementioned class Form and its interface to achieve the look created in the designer. ... Within the UI subsystem some sort of factory object would field that request and do the actual instantiation and initialization. ...
    (comp.object)
  • UserControl mit SubPanel und MS VS-Designerunterstützung
    ... Panel ist über ein globales Propterty 'DataPanel' erreichbar. ... Nun habe ich einen passenden Designer für das Control entwickelt, ... Nur nach dem Ablegen eines Controls kann ich dieses im VS-Designer ...
    (microsoft.public.de.german.entwickler.dotnet.csharp)
  • Re: Visual Basic 2005 - designer.vb page problem
    ... In order to eliminate this problem, I decided to move all the declarations ... This way the designer doesn't perform ... only standard ASP.NET controls or can you repro the problem through a very ... changed some thing in .aspx page. ...
    (microsoft.public.dotnet.framework.aspnet)