﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » WinForms (How do I?)  » How to avoid flicking on WinForm?</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 22 Sep 2026 06:36:02 GMT</lastBuildDate><ttl>20</ttl><item><title>How to avoid flicking on WinForm?</title><link>http://forum.strataframe.net/FindPost26671.aspx</link><description>Hi,&lt;br&gt;
Maybe question not a special about strataframe framework, but maybe someone help..&lt;br&gt;
&lt;br&gt;
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.&lt;br&gt;
I had try to use Win32 LockWindowUpdate not helps..&lt;br&gt;
&lt;br&gt;
Is there the way stop redraw MicroFour.StrataFrame.Application.StrataFrameApplication.MainForm and all whats located inside this form?&lt;br&gt;
&lt;br&gt;
Any idea!&lt;br&gt;
Thanks&lt;br&gt;
Denis</description><pubDate>Mon, 29 Mar 2010 10:43:05 GMT</pubDate><dc:creator>dgsoft</dc:creator></item><item><title>RE: How to avoid flicking on WinForm?</title><link>http://forum.strataframe.net/FindPost26676.aspx</link><description>Use the SuspendLayout() and ResumeLayout() methods of the form. I'd also use it for the panel itself.  E.g.&lt;br&gt;
&lt;br&gt;
[codesnippet]//-- Code that adds controls in method of the form.&lt;br&gt;
ThemedPanel myPanel = new ThemedPanel();&lt;br&gt;
this.SuspendLayout();&lt;br&gt;
myPanel.SuspendLayout();&lt;br&gt;
//-- add controls....&lt;br&gt;
myPanel.ResumeLayout();&lt;br&gt;
this.ResumeLayout();[/codesnippet]&lt;br&gt;</description><pubDate>Mon, 29 Mar 2010 10:43:05 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item></channel></rss>