How to avoid flicking on WinForm?


Author
Message
dgsoft
dgsoft
StrataFrame User (135 reputation)StrataFrame User (135 reputation)StrataFrame User (135 reputation)StrataFrame User (135 reputation)StrataFrame User (135 reputation)StrataFrame User (135 reputation)StrataFrame User (135 reputation)StrataFrame User (135 reputation)StrataFrame User (135 reputation)
Group: StrataFrame Users
Posts: 93, Visits: 236
Hi,

Maybe question not a special about strataframe framework, but maybe someone help..



How to prevent form Redraw? For example, I add programmatically docking panel and add control to this panel in runtime. During this process form blinking.

I had try to use Win32 LockWindowUpdate not helps..



Is there the way stop redraw MicroFour.StrataFrame.Application.StrataFrameApplication.MainForm and all whats located inside this form?



Any idea!

Thanks

Denis
Greg McGuffey
Greg McGuffey
Strategic Support Team Member (3.3K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
Use the SuspendLayout() and ResumeLayout() methods of the form. I'd also use it for the panel itself. E.g.



//-- Code that adds controls in method of the form.

ThemedPanel myPanel = new ThemedPanel();

this.SuspendLayout();

myPanel.SuspendLayout();

//-- add controls....

myPanel.ResumeLayout();

this.ResumeLayout();


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search