Re: UserControl als Container zur Design-Zeit

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Matthias Heise schrieb:
Hallo nochmals,

der Designer verwendet das DisplayRectangle dann auch auf meine eigenen Kind-Controls (wie die Überschrift) und der Inhalt schrumpft so bei jeder Bewegung weiter zusammen. Ich verstehe dabei sowieso nicht, warum er bei Dock.Fill nicht erkennt, daß ich schon Controls drin hab und sich daran anpaßt. Geht ja sonst auch, wenn ich verschiedene Controls draufziehe und jedes nach und nach auf Dock.Left z.B. setze.

Vorab, bitte kein TOFU (siehe z.B. http://piology.org/news/).

Probier mal ControlStyles.ContainerControl auf true zu setzen.

Allerdings verwende ich den Designer nie, von Hand habe ich das meist schneller getippt und der Designer stürzt mir viel zu oft ab und versaut mir meine Layouts. Dynamische Layouts sind damit sowieso nicht zu machen.

--
Servus,
Alexander Reifinger
.



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: Get all components, not controls on a form
    ... drop a Backgroundworker on it. ... over what do I iterate in order to locate this component? ... sub-class generated by the Designer. ... For controls that you have added, the Form's Controls property, which ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Get all components, not controls on a form
    ... over what do I iterate in order to locate this component? ... sub-class generated by the Designer. ... For controls that you have added, the Form's Controls property, which ... expressing that disagreement. ...
    (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)