System.Windows.Forms.Control.Contains(System.Windows.Forms.Control)

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

8 Examples 7

1. Example

Project: HaSuite
Source File: PageCollection.cs
View license
private void TabPages_PageRemoved(TabPage page)
        {
            if ((this.PageContainer.Contains(page.Control))) this.PageContainer.Controls.Clear();
            page.SetParent(null);
            page.TabPageCtl.OnClose -= OnPageClosing;
        }

2. Example

Project: PSVRFramework
Source File: Wizard.cs
View license
protected internal void ActivatePage(WizardPage page)
        {
            //Deactivate the current/n ..... /n //View Source file for more details /n }

3. Example

Project: LibUsbDotNet
Source File: Wizard.cs
View license
protected internal void ActivatePage(WizardPage page)
        {
            //Deactivate the current/n ..... /n //View Source file for more details /n }

4. Example

Project: vrs
Source File: Wizard.cs
View license
protected internal void ActivatePage(WizardPage page)
		{
			//Deactivate the current
			if (vActive/n ..... /n //View Source file for more details /n }

5. Example

Project: Krypton
Source File: VisualPopupPage.cs
View license
private bool TabToNextControl(Control focus,
                                      bool forward)
   /n ..... /n //View Source file for more details /n }

6. Example

Project: nHydrate
Source File: Wizard.cs
View license
private void ActivatePage(WizardPage page)
		{
			// validate given page
			if (this.pages.Contains(page) == false)
			{
				// filter out
				return;
			}

			// deactivate current page
			if (this._selectedPage != null)
			{
				this._selectedPage.Visible = false;
			}

			// activate new page
			this._selectedPage = page;

			if (this._selectedPage != null)
			{
				//Ensure that this panel displays inside the wizard
				this._selectedPage.Parent = this;
				if (this.Contains(this._selectedPage) == false)
				{
					this.Container.Add(this._selectedPage);
				}

				//Make it fill the space
				this._selectedPage.SetBounds(0, 0, this.Width, this.Height - FOOTER_AREA_HEIGHT);
				this._selectedPage.Visible = true;
				this._selectedPage.BringToFront();
				this.FocusFirstTabIndex(this._selectedPage);
			}

			//Enable navigation buttons
			cmdBack.Enabled = (this.SelectedIndex > 0);
			this.cmdNext.Enabled = (this.SelectedIndex < this.pages.Count - 1);

			// refresh
			if (this._selectedPage != null)
			{
				this._selectedPage.Invalidate();
			}
			else
			{
				this.Invalidate();
			}
		}

7. Example

Project: Krypton
Source File: KryptonRibbon.cs
View license
private bool SelectNonRibbonControl(bool forward)
        {
            // Find the control in our h/n ..... /n //View Source file for more details /n }

8. Example

Project: Krypton
Source File: KryptonNavigator.cs
View license
internal bool SelectNextPageControl(bool forward, bool onlyCurrentPage)
        {
            // Fin/n ..... /n //View Source file for more details /n }