System.Windows.Forms.Control.ResumeLayout C# (CSharp) Method

ResumeLayout() public method

public ResumeLayout ( bool performLayout ) : void
performLayout bool
return void
		public void ResumeLayout(bool performLayout) {
			
			if (layout_suspended > 0) {
				layout_suspended--;
			}

			if (layout_suspended == 0) {
				if (this is ContainerControl)
					(this as ContainerControl).PerformDelayedAutoScale();

				if (!performLayout)
					foreach (Control c in Controls.GetAllControls ())
						c.UpdateDistances ();

				if (performLayout && layout_pending) {
					PerformLayout();
				}
			}
		}
		[EditorBrowsable (EditorBrowsableState.Never)]

Same methods

Control::ResumeLayout ( ) : void

Usage Example

Example #1
0
        private static void ResumeDrawing(Control parent)
        {
            parent.ResumeLayout();
            SendMessage(parent.Handle, WM_SETREDRAW, true, 0);

            // Force redraw of control now
            parent.Refresh();
        }
All Usage Examples Of System.Windows.Forms.Control::ResumeLayout
Control