System.Windows.Forms.Control.ResumeLayout()

Here are the examples of the csharp api class System.Windows.Forms.Control.ResumeLayout() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

200 Examples 7

1. Example

Project: ContinuousTests
Source File: WarmupForm.cs
View license
void _beefTimer_Tick(object sender, EventArgs e)
        {
            SuspendLayout();
            if (pictureBoxFlex.Visible)
            {
                pictureBoxRelax.Visible = true;
                pictureBoxFlex.Visible = false;
            }
            else
            {
                pictureBoxFlex.Visible = true;
                pictureBoxRelax.Visible = false;
            }
            ResumeLayout();
        }

2. Example

View license
public void LayoutScrollBars()
		{
			this.SuspendLayout();
			Size diagramControlNewSize = this.Cli/n ..... /n //View Source file for more details /n }

3. Example

Project: MapleShark
Source File: FloatWindow.cs
View license
private void InternalConstruct(DockPanel dockPanel, DockPane pane, bool boundsSpecified, Rectangle bounds)
		{
			if (dockPanel == null)
				throw(new ArgumentNullException(Strings.FloatWindow_Constructor_NullDockPanel));

			m_nestedPanes = new NestedPaneCollection(this);

			FormBorderStyle = FormBorderStyle.SizableToolWindow;
			ShowInTaskbar = false;
            if (dockPanel.RightToLeft != RightToLeft)
                RightToLeft = dockPanel.RightToLeft;
            if (RightToLeftLayout != dockPanel.RightToLeftLayout)
                RightToLeftLayout = dockPanel.RightToLeftLayout;
			
			SuspendLayout();
            if (boundsSpecified)
            {
                Bounds = bounds;
                StartPosition = FormStartPosition.Manual;
            }
            else
            {
                StartPosition = FormStartPosition.WindowsDefaultLocation;
                Size = dockPanel.DefaultFloatWindowSize;
            }

			m_dockPanel = dockPanel;
			Owner = DockPanel.FindForm();
			DockPanel.AddFloatWindow(this);
			if (pane != null)
				pane.FloatWindow = this;

			ResumeLayout();
		}

4. Example

Project: dockpanelsuite
Source File: FloatWindow.cs
View license
private void InternalConstruct(DockPanel dockPanel, DockPane pane, bool boundsSpecified, Rectangle bounds)
        {
            if (dockPanel == null)
                throw(new ArgumentNullException(Strings.FloatWindow_Constructor_NullDockPanel));

            m_nestedPanes = new NestedPaneCollection(this);

            FormBorderStyle = FormBorderStyle.SizableToolWindow;
            ShowInTaskbar = false;
            if (dockPanel.RightToLeft != RightToLeft)
                RightToLeft = dockPanel.RightToLeft;
            if (RightToLeftLayout != dockPanel.RightToLeftLayout)
                RightToLeftLayout = dockPanel.RightToLeftLayout;
            
            SuspendLayout();
            if (boundsSpecified)
            {
                Bounds = bounds;
                StartPosition = FormStartPosition.Manual;
            }
            else
            {
                StartPosition = FormStartPosition.WindowsDefaultLocation;
                Size = dockPanel.DefaultFloatWindowSize;
            }

            m_dockPanel = dockPanel;
            Owner = DockPanel.FindForm();
            DockPanel.AddFloatWindow(this);
            if (pane != null)
                pane.FloatWindow = this;

            if (PatchController.EnableFontInheritanceFix == true)
            {
                Font = dockPanel.Font;
            }

            ResumeLayout();
        }

5. Example

Project: fomm
Source File: PanelToolStrip.cs
View license
protected void positionToolStripPanel()
    {
      SuspendLayout();

      var intButtonSpace = 0;
      if (m_pnlToolStrip.Direction == Orientation.Horizontal)
      {
        if (m_butDown.Visible)
        {
          intButtonSpace += m_butDown.Width;
          m_pnlToolStrip.Left = m_butDown.Width;
        }
        else
        {
          m_pnlToolStrip.Left = 0;
        }

        if (m_butUp.Visible)
        {
          intButtonSpace += m_butUp.Width;
        }

        m_pnlToolStrip.Height = (m_pnlToolStrip.NeedScroll)
          ? Height + SystemInformation.HorizontalScrollBarHeight
          : Height;
        m_pnlToolStrip.Width = Width - intButtonSpace;
        m_pnlToolStrip.Top = 0;
      }
      else
      {
        if (m_butUp.Visible)
        {
          intButtonSpace += m_butUp.Height;
          m_pnlToolStrip.Top = m_butUp.Height;
        }
        else
        {
          m_pnlToolStrip.Top = 0;
        }

        if (m_butDown.Visible)
        {
          intButtonSpace += m_butDown.Height;
        }

        m_pnlToolStrip.Width = (m_pnlToolStrip.NeedScroll)
          ? Width + SystemInformation.VerticalScrollBarWidth
          : Width;
        m_pnlToolStrip.Height = Height - intButtonSpace;
        m_pnlToolStrip.Left = 0;
      }

      ResumeLayout();
    }

6. Example

Project: fomm
Source File: SelectForm.cs
View license
private void lbSelect_KeyDown(object sender, KeyEventArgs e)
    {
      if (e.Control && e.KeyCode == Keys.A && Multi)
      {
        //No function to do this all in one go?
        SuspendLayout();
        lbSelect.SelectedIndices.Clear();
        for (var i = 0; i < lbSelect.Items.Count; i++)
        {
          lbSelect.SelectedIndices.Add(i);
        }
        ResumeLayout();
      }
    }

7. Example

Project: ArnoldSimulator
Source File: FloatWindow.cs
View license
private void InternalConstruct(DockPanel dockPanel, DockPane pane, bool boundsSpecified, Rectangle bounds)
        {
            if (dockPanel == null)
                throw(new ArgumentNullException(Strings.FloatWindow_Constructor_NullDockPanel));

            m_nestedPanes = new NestedPaneCollection(this);

            FormBorderStyle = FormBorderStyle.SizableToolWindow;
            ShowInTaskbar = false;
            if (dockPanel.RightToLeft != RightToLeft)
                RightToLeft = dockPanel.RightToLeft;
            if (RightToLeftLayout != dockPanel.RightToLeftLayout)
                RightToLeftLayout = dockPanel.RightToLeftLayout;
            
            SuspendLayout();
            if (boundsSpecified)
            {
                Bounds = bounds;
                StartPosition = FormStartPosition.Manual;
            }
            else
            {
                StartPosition = FormStartPosition.WindowsDefaultLocation;
                Size = dockPanel.DefaultFloatWindowSize;
            }

            m_dockPanel = dockPanel;
            Owner = DockPanel.FindForm();
            DockPanel.AddFloatWindow(this);
            if (pane != null)
                pane.FloatWindow = this;

            ResumeLayout();
        }

8. Example

Project: lua-tilde
Source File: FloatWindow.cs
View license
private void InternalConstruct(DockPanel dockPanel, DockPane pane, bool boundsSpecified, Rectangle bounds)
		{
			if (dockPanel == null)
				throw(new ArgumentNullException(Strings.FloatWindow_Constructor_NullDockPanel));

			m_nestedPanes = new NestedPaneCollection(this);

			FormBorderStyle = FormBorderStyle.SizableToolWindow;
			ShowInTaskbar = false;
            if (dockPanel.RightToLeft != RightToLeft)
                RightToLeft = dockPanel.RightToLeft;
            if (RightToLeftLayout != dockPanel.RightToLeftLayout)
                RightToLeftLayout = dockPanel.RightToLeftLayout;
			
			SuspendLayout();
            if (boundsSpecified)
            {
                Bounds = bounds;
                StartPosition = FormStartPosition.Manual;
            }
            else
            {
                StartPosition = FormStartPosition.WindowsDefaultLocation;
                Size = dockPanel.DefaultFloatWindowSize;
            }

			m_dockPanel = dockPanel;
			Owner = DockPanel.FindForm();
			DockPanel.AddFloatWindow(this);
			if (pane != null)
				pane.FloatWindow = this;

			ResumeLayout();
		}

9. Example

View license
public void ResumeUpdate()
		{
			ResumeLayout();
			if (IsRefreshSuspended)
			{
				IsRefreshSuspended = false;
				PropertyChanged();
			}
		}

10. Example

Project: fdotoolbox
Source File: ToolBarService.cs
View license
public static void UpdateToolbar(ToolStrip toolStrip)
		{
			toolStrip.SuspendLayout();
			foreach (ToolStripItem item in toolStrip.Items) {
				if (item is IStatusUpdate) {
					((IStatusUpdate)item).UpdateStatus();
				}
			}
			toolStrip.ResumeLayout();
			//toolStrip.Refresh();
		}

11. Example

Project: fdotoolbox
Source File: ToolBarService.cs
View license
public static void UpdateToolbarText(ToolStrip toolStrip)
		{
			toolStrip.SuspendLayout();
			foreach (ToolStripItem item in toolStrip.Items) {
				if (item is IStatusUpdate) {
					((IStatusUpdate)item).UpdateText();
				}
			}
			toolStrip.ResumeLayout();
		}

12. Example

Project: clrprofiler
Source File: CallTreeForm.cs
View license
private void CallTreeForm_Resize(object sender, System.EventArgs e)
        {
            controlCollection.SuspendLayout();
            controlCollection.Left = 0;
            controlCollection.Top = (manyThreads ? 36 : 0);
            controlCollection.Width = this.ClientSize.Width;
            controlCollection.Height = this.ClientSize.Height - controlCollection.Top;
            controlCollection.ResumeLayout();
        }

13. Example

Project: clrprofiler
Source File: DiffCallTreeForm.cs
View license
private void DiffCallTreeForm_Resize(object sender, System.EventArgs e)
		{
			controlCollection.SuspendLayout();
			controlCollection.Left = 0;
			controlCollection.Top = 0;
			controlCollection.Width = this.ClientSize.Width;
			controlCollection.Height = this.ClientSize.Height - controlCollection.Top;
			controlCollection.ResumeLayout();
		}

14. Example

Project: XrmToolBox
Source File: StoreFormFromPortal.cs
View license
protected override void OnResizeEnd(EventArgs e)
        {
            ResumeLayout();
            base.OnResizeEnd(e);
        }

15. Example

Project: mwinapi
Source File: NoteForm.cs
View license
private void rehideText()
        {
            int ow = mainNote.Width;
            int oh = mainNote.Height;
            SuspendLayout();

            mainNote.Parent = this;
            mainNote.Left = splitContainer.Left;
            mainNote.Top = splitContainer.Top;
            mainNote.Height = splitContainer.Height;
            mainNote.Width = splitContainer.Width;
            splitContainer.Visible = false;
            textNote.Visible = false;
            ResumeLayout();

            Width += ow - mainNote.Width;
            Height += oh - mainNote.Height;
            tp = TextPosition.NONE;
        }

16. Example

Project: Nexus-Mod-Manager
Source File: FloatWindow.cs
View license
private void InternalConstruct(DockPanel dockPanel, DockPane pane, bool boundsSpecified, Rectangle bounds)
        {
            if (dockPanel == null)
                throw(new ArgumentNullException(Strings.FloatWindow_Constructor_NullDockPanel));

            m_nestedPanes = new NestedPaneCollection(this);

            FormBorderStyle = FormBorderStyle.SizableToolWindow;
            ShowInTaskbar = false;
            if (dockPanel.RightToLeft != RightToLeft)
                RightToLeft = dockPanel.RightToLeft;
            if (RightToLeftLayout != dockPanel.RightToLeftLayout)
                RightToLeftLayout = dockPanel.RightToLeftLayout;
            
            SuspendLayout();
            if (boundsSpecified)
            {
                Bounds = bounds;
                StartPosition = FormStartPosition.Manual;
            }
            else
            {
                StartPosition = FormStartPosition.WindowsDefaultLocation;
                Size = dockPanel.DefaultFloatWindowSize;
            }

            m_dockPanel = dockPanel;
            Owner = DockPanel.FindForm();
            DockPanel.AddFloatWindow(this);
            if (pane != null)
                pane.FloatWindow = this;

            ResumeLayout();
        }

17. Example

Project: Nexus-Mod-Manager
Source File: PanelToolStrip.cs
View license
protected void positionToolStripPanel()
		{
			this.SuspendLayout();

			Int32 intButtonSpace = 0;
			if (m_pnlToolStrip.Direction == Orientation.Horizontal)
			{
				if (m_butDown.Visible)
				{
					intButtonSpace += m_butDown.Width;
					m_pnlToolStrip.Left = m_butDown.Width;
				}
				else
					m_pnlToolStrip.Left = 0;

				if (m_butUp.Visible)
					intButtonSpace += m_butUp.Width;

				m_pnlToolStrip.Height = (m_pnlToolStrip.NeedScroll) ? this.Height + SystemInformation.HorizontalScrollBarHeight : this.Height;
				m_pnlToolStrip.Width = this.Width - intButtonSpace;
				m_pnlToolStrip.Top = 0;
			}
			else
			{
				if (m_butUp.Visible)
				{
					intButtonSpace += m_butUp.Height;
					m_pnlToolStrip.Top = m_butUp.Height;
				}
				else
					m_pnlToolStrip.Top = 0;

				if (m_butDown.Visible)
					intButtonSpace += m_butDown.Height;

				m_pnlToolStrip.Width = (m_pnlToolStrip.NeedScroll) ? this.Width + SystemInformation.VerticalScrollBarWidth : this.Width;
				m_pnlToolStrip.Height = this.Height - intButtonSpace;
				m_pnlToolStrip.Left = 0;
			}

			this.ResumeLayout();
		}

18. Example

Project: cardmaker
Source File: ListViewAssist.cs
View license
public static void ResizeColumnHeaders(ListView lvInput)
        {
            if (0 == lvInput.Columns.Count) return; // bad!
            if (0 == lvInput.ClientSize.Width) return; // no width? (minimized?)

            lvInput.Visible = false;
            lvInput.SuspendLayout();

            var arrayPercents = new float[lvInput.Columns.Count];
            int nColumnsWidth = 0;
            for (int nIdx = 0; nIdx < lvInput.Columns.Count; nIdx++)
            {
                nColumnsWidth += lvInput.Columns[nIdx].Width;
            }
            for (int nIdx = 0; nIdx < lvInput.Columns.Count; nIdx++)
            {
                arrayPercents[nIdx] = (float)lvInput.Columns[nIdx].Width / (float)nColumnsWidth;
            }
            for (int nIdx = 0; nIdx < lvInput.Columns.Count; nIdx++)
            {
                lvInput.Columns[nIdx].Width = (int)(arrayPercents[nIdx] * (float)lvInput.ClientSize.Width);
            }
            lvInput.ResumeLayout();
            lvInput.Visible = true;
        }

19. Example

Project: LaserGRBL
Source File: RasterToLaserForm.cs
View license
private void CbMode_SelectedIndexChanged(object sender, EventArgs e)
		{
			if (IP != null)
			{
				IP.Formula = (ImageTransform.Formula)CbMode.SelectedItem;

				SuspendLayout();
				TBRed.Visible = TBGreen.Visible = TBBlue.Visible = (IP.Formula == ImageTransform.Formula.Custom && !IP.IsGrayScale);
				LblRed.Visible = LblGreen.Visible = LblBlue.Visible = (IP.Formula == ImageTransform.Formula.Custom && !IP.IsGrayScale);
				ResumeLayout();
			}
		}

20. Example

Project: LaserGRBL
Source File: MainForm.cs
View license
private void MainForm_Load(object sender, EventArgs e)
		{
			UpdateTimer.Enabled = true;
			GitHub.CheckVersion();

			SuspendLayout();
			//restore last size and position
			Object[] msp = (Object[])Settings.GetObject("Mainform Size and Position", null);
			FormWindowState state = msp == null ? FormWindowState.Maximized : (FormWindowState)msp[2] != FormWindowState.Minimized ? (FormWindowState)msp[2] : FormWindowState.Maximized;
			if (state == FormWindowState.Normal)
			{ WindowState = state; Size = (Size)msp[0]; Location = (Point)msp[1]; }
			ResumeLayout();
		}

21. Example

Project: LaserGRBL
Source File: MainForm.cs
View license
private void TimerUpdate()
		{
			SuspendLayout();
			TTTStatus.Text = GrblCore.TranslateEnum(Core.M/n ..... /n //View Source file for more details /n }

22. Example

View license
void IRtlAware.Layout()
        {
            _doingLayout = true;
            SuspendLayout();
            separatorControl.Width = labelHeading.Width = linkLabelOptional.Width = linkLabel.Width = Width;
            LayoutHelper.NaturalizeHeightAndDistribute(2, labelHeading, linkLabel, linkLabelOptional);

            //linkLabel.Width = Width;

            Control lastVisibleControl = linkLabel;
            if (linkLabelOptional.Visible)
                lastVisibleControl = linkLabelOptional;

            Height = lastVisibleControl.Bottom + separatorControl.Height + SEP_TOP_PADDING + SEP_BOTTOM_PADDING;
            separatorControl.Top = lastVisibleControl.Bottom + SEP_TOP_PADDING;

            if (BidiHelper.IsRightToLeft)
            {
                labelHeading.Left = Width - labelHeading.Width;
                linkLabel.Left = Width - linkLabel.Width - 1;
                linkLabelOptional.Left = Width - linkLabelOptional.Width - 1;
            }
            else
            {
                labelHeading.Left = -1;
                linkLabel.Left = linkLabelOptional.Left = 0;
            }
            ResumeLayout();
            _doingLayout = false;
        }

23. Example

View license
private void listView_Resize(object sender, EventArgs e)
        {
            var listView = sender as ListView;
            if (listView == null)
            {
                return;
            }
            try
            {
                listView.SuspendDrawing();
                listView.SuspendLayout();
                var width = listView.Width - listView.Columns[0].Width - 5;
                var scrollbars = ScrollBarHelper.GetVisibleScrollbars(listView);
                if (scrollbars == ScrollBars.Vertical || scrollbars == ScrollBars.Both)
                {
                    width -= 17;
                }
                listView.Columns[1].Width = width;
            }
            finally
            {
                listView.ResumeLayout();
                listView.ResumeDrawing();
            }
        }

24. Example

View license
private void listView_Resize(object sender, EventArgs e)
        {
            var listView = sender as ListView;
            if (listView == null)
            {
                return;
            }
            try
            {
                listView.SuspendDrawing();
                listView.SuspendLayout();
                var width = listView.Width - listView.Columns[0].Width - 5;
                var scrollbars = ScrollBarHelper.GetVisibleScrollbars(listView);
                if (scrollbars == ScrollBars.Vertical || scrollbars == ScrollBars.Both)
                {
                    width -= 17;
                }
                listView.Columns[1].Width = width;
            }
            finally
            {
                listView.ResumeLayout();
                listView.ResumeDrawing();
            }
        }

25. Example

View license
private void listView_Resize(object sender, EventArgs e)
        {
            var listView = sender as ListView;
            if (listView == null)
            {
                return;
            }
            try
            {
                listView.SuspendDrawing();
                listView.SuspendLayout();
                var width = listView.Width - listView.Columns[0].Width - 5;
                var scrollbars = ScrollBarHelper.GetVisibleScrollbars(listView);
                if (scrollbars == ScrollBars.Vertical || scrollbars == ScrollBars.Both)
                {
                    width -= 17;
                }
                listView.Columns[1].Width = width;
            }
            finally
            {
                listView.ResumeLayout();
                listView.ResumeDrawing();
            }
        }

26. Example

View license
private void listView_Resize(object sender, EventArgs e)
        {
            var listView = sender as ListView;
            if (listView == null)
            {
                return;
            }
            try
            {
                listView.SuspendDrawing();
                listView.SuspendLayout();
                if (listView.Columns.Count == 0)
                {
                    return;
                }
                var width = listView.Width - listView.Columns[0].Width - 5;
                var scrollbars = ScrollBarHelper.GetVisibleScrollbars(listView);
                if (scrollbars == ScrollBars.Vertical || scrollbars == ScrollBars.Both)
                {
                    width -= 17;
                }
                listView.Columns[1].Width = width;
            }
            finally
            {
                listView.ResumeLayout();
                listView.ResumeDrawing();
            }
        }

27. Example

View license
private void eventListView_Resize(object sender, EventArgs e)
        {
            var listView = sender as ListView;
            if (listView == null)
            {
                return;
            }
            try
            {
                listView.SuspendDrawing();
                listView.SuspendLayout();
                var width = listView.Width -
                        listView.Columns[StateListViewColumnIndex].Width -
                        listView.Columns[MonitorListViewColumnIndex].Width -
                        listView.Columns[TimestampListViewColumnIndex].Width;
                listView.Columns[EntityListViewColumnIndex].Width = width - 4;
            }
            finally
            {
                listView.ResumeLayout();
                listView.ResumeDrawing();
            }
        }

28. Example

View license
private void listView_Resize(object sender, EventArgs e)
        {
            var listView = sender as ListView;
            if (listView == null)
            {
                return;
            }
            try
            {
                listView.SuspendDrawing();
                listView.SuspendLayout();
                if (listView.Columns.Count == 0)
                {
                    return;
                }
                var width = listView.Width - listView.Columns[0].Width - 5;
                var scrollbars = ScrollBarHelper.GetVisibleScrollbars(listView);
                if (scrollbars == ScrollBars.Vertical || scrollbars == ScrollBars.Both)
                {
                    width -= 17;
                }
                listView.Columns[1].Width = width;
            }
            finally
            {
                listView.ResumeLayout();
                listView.ResumeDrawing();
            }
        }

29. Example

Project: poderosa
Source File: OpenPipeDialog.cs
View license
private void InitialLayout() {
            this.SuspendLayout();
            _groupBoxProcess.Width = _groupBoxPipe.Width;
            _groupBoxProcess.Height = _groupBoxPipe.Height;
            _groupBoxProcess.Location = _groupBoxPipe.Location;

            int shrinkHeight = _textBoxAutoExecMacroPath.Top - _groupTerminal.Bottom - 8/* margin */;
            this.Height -= shrinkHeight;
            this.ResumeLayout();
        }

30. Example

Project: ShadowsocksR-Csharp
Source File: ConfigForm.cs
View license
private void Update_SSR_controls_Visable()
        {
            SuspendLayout();
            if (checkAdvSetting.Checked)
            {
                labelUDPPort.Visible = true;
                NumUDPPort.Visible = true;
                //TCPoverUDPLabel.Visible = true;
                //CheckTCPoverUDP.Visible = true;
            }
            else
            {
                labelUDPPort.Visible = false;
                NumUDPPort.Visible = false;
                //TCPoverUDPLabel.Visible = false;
                //CheckTCPoverUDP.Visible = false;
            }
            if (checkAdvSetting.Checked)
            {
                UDPoverTCPLabel.Visible = true;
                CheckUDPoverUDP.Visible = true;
            }
            else
            {
                UDPoverTCPLabel.Visible = false;
                CheckUDPoverUDP.Visible = false;
            }
            ResumeLayout();
        }

31. Example

Project: WYZTracker
Source File: EffectEditor.cs
View license
protected override void OnResizeEnd(EventArgs e)
        {
            base.OnResizeEnd(e);
            this.ResumeLayout();
        }

32. Example

Project: WYZTracker
Source File: InstrumentEditor.cs
View license
protected override void OnResizeEnd(EventArgs e)
        {
            base.OnResizeEnd(e);
            this.ResumeLayout();
        }

33. Example

Project: shadowsocksr-csharp
Source File: ConfigForm.cs
View license
private void Update_SSR_controls_Visable()
        {
            SuspendLayout();
            if (checkAdvSetting.Checked)
            {
                labelUDPPort.Visible = true;
                NumUDPPort.Visible = true;
                //TCPoverUDPLabel.Visible = true;
                //CheckTCPoverUDP.Visible = true;
            }
            else
            {
                labelUDPPort.Visible = false;
                NumUDPPort.Visible = false;
                //TCPoverUDPLabel.Visible = false;
                //CheckTCPoverUDP.Visible = false;
            }
            if (checkAdvSetting.Checked)
            {
                UDPoverTCPLabel.Visible = true;
                CheckUDPoverUDP.Visible = true;
            }
            else
            {
                UDPoverTCPLabel.Visible = false;
                CheckUDPoverUDP.Visible = false;
            }
            ResumeLayout();
        }

34. Example

Project: shadowsocksr-csharp
Source File: ConfigForm.cs
View license
private void Update_SSR_controls_Visable()
        {
            SuspendLayout();
            if (checkAdvSetting.Checked)
            {
                labelUDPPort.Visible = true;
                NumUDPPort.Visible = true;
                //TCPoverUDPLabel.Visible = true;
                //CheckTCPoverUDP.Visible = true;
            }
            else
            {
                labelUDPPort.Visible = false;
                NumUDPPort.Visible = false;
                //TCPoverUDPLabel.Visible = false;
                //CheckTCPoverUDP.Visible = false;
            }
            if (checkAdvSetting.Checked)
            {
                UDPoverTCPLabel.Visible = true;
                CheckUDPoverUDP.Visible = true;
            }
            else
            {
                UDPoverTCPLabel.Visible = false;
                CheckUDPoverUDP.Visible = false;
            }
            ResumeLayout();
        }

35. Example

View license
public void UpdateButtons()
        {
            cmsHistory.SuspendLayout();
            cmsHistory/n ..... /n //View Source file for more details /n }

36. Example

Project: DatabaseBenchmark
Source File: MainForm.cs
View license
private void resetWindowLayoutToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            this.SuspendLayout();

            MainLayout.RefreshDocking();

            this.ResumeLayout();
        }

37. Example

Project: BulkPDF
Source File: MainForm.cs
View license
private void bBack_Click(object sender, EventArgs e)
        {
            this.SuspendLayout();
            if (wizardPages.SelectedIndex > 0)
                wizardPages.SelectedIndex -= 1;
            this.ResumeLayout();
        }

38. Example

Project: ynoteclassic
Source File: FloatWindow.cs
View license
private void InternalConstruct(DockPanel dockPanel, DockPane pane, bool boundsSpecified, Rectangle bounds)
        {
            if (dockPanel == null)
                throw (new ArgumentNullException(Strings.FloatWindow_Constructor_NullDockPanel));

            m_nestedPanes = new NestedPaneCollection(this);

            FormBorderStyle = FormBorderStyle.SizableToolWindow;
            ShowInTaskbar = false;
            if (dockPanel.RightToLeft != RightToLeft)
                RightToLeft = dockPanel.RightToLeft;
            if (RightToLeftLayout != dockPanel.RightToLeftLayout)
                RightToLeftLayout = dockPanel.RightToLeftLayout;

            SuspendLayout();
            if (boundsSpecified)
            {
                Bounds = bounds;
                StartPosition = FormStartPosition.Manual;
            }
            else
            {
                StartPosition = FormStartPosition.WindowsDefaultLocation;
                Size = dockPanel.DefaultFloatWindowSize;
            }

            m_dockPanel = dockPanel;
            Owner = DockPanel.FindForm();
            DockPanel.AddFloatWindow(this);
            if (pane != null)
                pane.FloatWindow = this;

            ResumeLayout();
        }

39. Example

View license
public void UpdateButtons()
        {
            cmsHistory.SuspendLayout();
            cmsHistory/n ..... /n //View Source file for more details /n }

40. Example

Project: QTTabBar
Source File: OptionsDialog.cs
View license
private void chbShowPreviewTooltip_CheckedChanged(object sender, EventArgs e) {
            tabPage9_Misc.SuspendLayout();
            nudPreviewMaxWidth.Enabled = nudPreviewMaxHeight.Enabled = cmbTextExts.Enabled = btnAddTextExt.Enabled = btnDelTextExt.Enabled = btnDefaultTextExt.Enabled = cmbImgExts.Enabled = btnAddImgExt.Enabled = btnDelImgExt.Enabled = btnDefaultImgExt.Enabled = btnPreviewFont.Enabled = btnPreviewFontDefault.Enabled = chbPreviewInfo.Enabled = chbPreviewMode.Enabled = chbShowPreview.Checked;
            tabPage9_Misc.ResumeLayout();
        }

41. Example

Project: QTTabBar
Source File: QTButtonBar.cs
View license
private void pluginDropDown_DropDownOpening(object sender, EventArgs e) {
            toolStrip.HideToolTip();
            ToolStripDropDownItem item = (ToolStripDropDownItem)sender;
            item.DropDown.SuspendLayout();
            int num = ((int)item.Tag) - 0x10000;
            if(PluginManager.ActivatedButtonsOrder.Count > num) {
                Plugin plugin;
                string pluginID = PluginManager.ActivatedButtonsOrder[num];
                if(pluginManager.TryGetPlugin(pluginID, out plugin)) {
                    try {
                        ((IBarDropButton)plugin.Instance).OnDropDownOpening((ToolStripDropDownMenu)item.DropDown);
                    }
                    catch(Exception exception) {
                        PluginManager.HandlePluginException(exception, ExplorerHandle, plugin.PluginInformation.Name, "On dropdwon menu is showing.");
                    }
                }
            }
            item.DropDown.ResumeLayout();
        }

42. Example

Project: cardia
Source File: NetworkFrm.cs
View license
void cardia_NetworkModeChanged(object sender, NetworkRelayMode mode)
        {
            switch(mode)
            {
                case NetworkRelayMode.Client:
                    this.SuspendLayout();
                    rbClient.Checked = true;
                    lbAddress.Visible = true;
                    tbAddress.Visible = true;
                    this.ResumeLayout();
                    break;
                case NetworkRelayMode.Server:
                    this.SuspendLayout();
                    rbServer.Checked = true;
                    lbAddress.Visible = false;
                    tbAddress.Visible = false;
                    this.ResumeLayout();
                    break;
            }
        }

43. Example

Project: SquareOne
Source File: FloatWindow.cs
View license
private void InternalConstruct(DockPanel dockPanel, DockPane pane, bool boundsSpecified, Rectangle bounds)
        {
            if (dockPanel == null)
                throw(new ArgumentNullException(Strings.FloatWindow_Constructor_NullDockPanel));

            m_nestedPanes = new NestedPaneCollection(this);

            FormBorderStyle = FormBorderStyle.SizableToolWindow;
            ShowInTaskbar = false;
            if (dockPanel.RightToLeft != RightToLeft)
                RightToLeft = dockPanel.RightToLeft;
            if (RightToLeftLayout != dockPanel.RightToLeftLayout)
                RightToLeftLayout = dockPanel.RightToLeftLayout;
            
            SuspendLayout();
            if (boundsSpecified)
            {
                Bounds = bounds;
                StartPosition = FormStartPosition.Manual;
            }
            else
            {
                StartPosition = FormStartPosition.WindowsDefaultLocation;
                Size = dockPanel.DefaultFloatWindowSize;
            }

            m_dockPanel = dockPanel;
            Owner = DockPanel.FindForm();
            DockPanel.AddFloatWindow(this);
            if (pane != null)
                pane.FloatWindow = this;

            ResumeLayout();
        }

44. Example

Project: xenadmin
Source File: WlbOptimizePool.cs
View license
public void SetOptControlProperties(bool autoOptEnabled, bool powerManagementEnabled)
        {
            _autoOptEnabled = autoOptEnabled;
            _powerManagementEnabled = powerManagementEnabled;

            this.SuspendLayout();
            if (WlbServerState.GetState(_pool) == WlbServerState.ServerState.Enabled)
            {
                //linkLabelReportHistory.Visible = true;

                // Update listView VM/Host header text
                this.optimizePoolListView.BeginUpdate();
                this.columnHeader1.Text = Messages.WLB_OPT_HEADER_VMHOST;
                this.optimizePoolListView.EndUpdate();
            }
            else
            {
                //linkLabelReportHistory.Visible = false;

                // Update listView VM/Host header text
                this.optimizePoolListView.BeginUpdate();
                this.columnHeader1.Text = Messages.WLB_OPT_HEADER_VM;
                this.optimizePoolListView.EndUpdate();
            }

            this.ResumeLayout();
        }

45. Example

View license
public void EndUpdate()
        {
            isUpdating = false;
            this.ResumeLayout();
            Invalidate();
        }

46. Example

Project: ceptr
Source File: FloatWindow.cs
View license
private void InternalConstruct(DockPanel dockPanel, DockPane pane, bool boundsSpecified, Rectangle bounds)
		{
			if (dockPanel == null)
				throw(new ArgumentNullException(Strings.FloatWindow_Constructor_NullDockPanel));

			m_nestedPanes = new NestedPaneCollection(this);

			FormBorderStyle = FormBorderStyle.SizableToolWindow;
			ShowInTaskbar = false;
            if (dockPanel.RightToLeft != RightToLeft)
                RightToLeft = dockPanel.RightToLeft;
            if (RightToLeftLayout != dockPanel.RightToLeftLayout)
                RightToLeftLayout = dockPanel.RightToLeftLayout;
			
			SuspendLayout();
            if (boundsSpecified)
            {
                Bounds = bounds;
                StartPosition = FormStartPosition.Manual;
            }
            else
            {
                StartPosition = FormStartPosition.WindowsDefaultLocation;
                Size = dockPanel.DefaultFloatWindowSize;
            }

			m_dockPanel = dockPanel;
			Owner = DockPanel.FindForm();
			DockPanel.AddFloatWindow(this);
			if (pane != null)
				pane.FloatWindow = this;

			ResumeLayout();
		}

47. Example

Project: ARKStatsExtractor
Source File: StatPotential.cs
View license
public void setLevel(int speciesIndex, int wildLevel)
        {
            if (levelGraphMax > 0)
            {
                SuspendLayout();
                labelWildLevels.Width = 60 + 68 * (wildLevel > levelGraphMax ? levelGraphMax : wildLevel) / levelGraphMax;
                labelImprinting.Width = 60;
                labelDomLevels.Width = 60;
                labelImprinting.Location = new Point(33 + labelWildLevels.Width, 0);
                labelDomLevels.Location = new Point(35 + labelWildLevels.Width + labelImprinting.Width, 0);
                labelWildLevels.Text = (Stats.calculateValue(speciesIndex, statIndex, wildLevel, 0, true, 1, 0) * (percent ? 100 : 1)).ToString() + (percent ? "%" : "");
                labelImprinting.Text = (Stats.calculateValue(speciesIndex, statIndex, wildLevel, 0, true, 1, 1) * (percent ? 100 : 1)).ToString() + (percent ? "%" : "");
                labelDomLevels.Text = (Stats.calculateValue(speciesIndex, statIndex, wildLevel, maxDomLevel, true, 1, 1) * (percent ? 100 : 1)).ToString() + (percent ? "%" : "");
                ResumeLayout();
            }
        }

48. Example

Project: ARKStatsExtractor
Source File: StatPotentials.cs
View license
public void setLevels(int[] levelsWild, bool forceUpdate)
        {
            SuspendLayout();
            for (int s = 0; s < 8; s++)
            {
                if (forceUpdate || oldLevels[s] != levelsWild[s])
                {
                    oldLevels[s] = levelsWild[s];
                    stats[s].setLevel(speciesIndex, levelsWild[s]);
                }
            }
            ResumeLayout();
        }

49. Example

Project: ClearCanvas
Source File: DesktopForm.cs
View license
protected virtual void BuildToolStrip(ToolStripBuilder.ToolStripKind kind, ToolStrip toolStrip, ActionModelNode actionModel)
        {
            // avoid flicker
            toolStrip.SuspendLayout();
            // very important to clean up the existing ones first
            ToolStripBuilder.Clear(toolStrip.Items);

            if (actionModel != null)
            {
				if (actionModel.ChildNodes.Count > 0)
				{
					// Toolstrip should only be visible if there are items on it
					if (kind == ToolStripBuilder.ToolStripKind.Toolbar)
						ToolStripBuilder.BuildToolStrip(kind, toolStrip.Items, actionModel.ChildNodes, ToolStripBuilder.ToolStripBuilderStyle.GetDefault(), ToolStripSettings.Default.IconSize);
					else
						ToolStripBuilder.BuildToolStrip(kind, toolStrip.Items, actionModel.ChildNodes);
                }
            }

            toolStrip.ResumeLayout();
        }

50. Example

Project: HOPE
Source File: FloatWindow.cs
View license
private void InternalConstruct(DockPanel dockPanel, DockPane pane, bool boundsSpecified, Rectangle bounds)
		{
			if (dockPanel == null)
				throw(new ArgumentNullException(Strings.FloatWindow_Constructor_NullDockPanel));

			m_nestedPanes = new NestedPaneCollection(this);

			FormBorderStyle = FormBorderStyle.SizableToolWindow;
			ShowInTaskbar = false;
            if (dockPanel.RightToLeft != RightToLeft)
                RightToLeft = dockPanel.RightToLeft;
            if (RightToLeftLayout != dockPanel.RightToLeftLayout)
                RightToLeftLayout = dockPanel.RightToLeftLayout;
			
			SuspendLayout();
            if (boundsSpecified)
            {
                Bounds = bounds;
                StartPosition = FormStartPosition.Manual;
            }
            else
            {
                StartPosition = FormStartPosition.WindowsDefaultLocation;
                Size = dockPanel.DefaultFloatWindowSize;
            }

			m_dockPanel = dockPanel;
			Owner = DockPanel.FindForm();
			DockPanel.AddFloatWindow(this);
			if (pane != null)
				pane.FloatWindow = this;

			ResumeLayout();
		}