Re: SuspendLayout Not Suspending...

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



<rlrcstr@xxxxxxxxxxxxxxxxx> wrote in message news:ezzKBc1bHHA.4716@xxxxxxxxxxxxxxxxxxxxxxx
Even though I am using Suspend Layout, I still see the
controls getting drawn as they are added to the panel.
I've tried suspending the layout of the form, of the panel
and even on the user controls.

How can I get this thing populated wihtout seeing it being
drawn so slowly on the screen?

If you are using version 2 of the Framework, you can set to true the property DoubleBuffered of the Form or Panel.


.



Relevant Pages

  • Re: datagrid "can grow" ?
    ... You can of course get rid of grid layout. ... You could also put the datagrid & ... all the controls below it into the same flow layout panel. ... the DIVcontaining the controls to that value + some number. ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • Re: Labels drawn differently in IDE and runtime
    ... As you add the label to any parent with layout, be it a table-layout-panel cell, a flow-layout-panel, or just some Dock to a side of any panel or form, the behavior of the label becomes fully predictable, even if it undergoes some queer font rendering changes. ... For example, if we're about to lay out a dialog with a banner on the top, some buttons at the bottom, and controls in the middle, I would not add all of the controls to the same panel. ...
    (microsoft.public.dotnet.framework.windowsforms.controls)
  • Re: Postback bevor Buttonereignis
    ... // Controls im Panel Kategorie setzen ... Auf dieser Ansicht hat der Benutzer eben diesen Button, wo er den Modus ... dass beim Click auf den Button zuerst der Postback ...
    (microsoft.public.de.german.entwickler.dotnet.asp)
  • RE: Repost: Controls are unreachable after scroll and form resize.
    ... form are visible and there is no scroll bars on the panel. ... some of the controls on the panel are placed ... Then if I resize the child form to the previous size ... the same as the locations after I drag the scroll bar just now. ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: SuspendLayout Not Suspending...
    ... DoubleBuffered reduces the flickering, but it has not effect on the controls ... controls getting drawn as they are added to the panel. ... I've tried suspending the layout of the form, of the panel ...
    (microsoft.public.dotnet.languages.csharp)