Re: Controls disappear from designer...

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

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


Date: Thu, 02 Dec 2004 21:15:05 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.
>

By the way,

THANK YOU! THANK YOU! THANK YOU! lol I was freaking out... I added one
line and now they are coming back... whew.

-- 
---
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: 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)
  • 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)
  • Re: Does C#.Net support Layout managers?
    ... That's not the scenario for which I'm advocating the designer. ... the logic is in the business layer. ... When the controls need to be set up dynamically using logic, ... Refactoring tools built into VS2005 now, but working with them, I've ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Does C#.Net support Layout managers?
    ... CANNOT set on the designer. ... Its rather silly to have an array of controls. ... The designer is a code generator itself, ... A lot of Windows UI code was thrown away when the Web became ...
    (microsoft.public.dotnet.languages.csharp)