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
0
1. Example
View licenseprivate void TabPages_PageRemoved(TabPage page) { if ((this.PageContainer.Contains(page.Control))) this.PageContainer.Controls.Clear(); page.SetParent(null); page.TabPageCtl.OnClose -= OnPageClosing; }
0
2. Example
View licenseprotected internal void ActivatePage(WizardPage page) { //Deactivate the current/n ..... /n //View Source file for more details /n }
0
3. Example
View licenseprotected internal void ActivatePage(WizardPage page) { //Deactivate the current/n ..... /n //View Source file for more details /n }
0
4. Example
View licenseprotected internal void ActivatePage(WizardPage page) { //Deactivate the current if (vActive/n ..... /n //View Source file for more details /n }
0
5. Example
View licenseprivate bool TabToNextControl(Control focus, bool forward) /n ..... /n //View Source file for more details /n }
0
6. Example
View licenseprivate 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(); } }
0
7. Example
View licenseprivate bool SelectNonRibbonControl(bool forward) { // Find the control in our h/n ..... /n //View Source file for more details /n }
0
8. Example
View licenseinternal bool SelectNextPageControl(bool forward, bool onlyCurrentPage) { // Fin/n ..... /n //View Source file for more details /n }