System.Windows.Forms.Control.ResetBackColor()

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

5 Examples 7

1. Example

Project: dockpanelsuite
Source File: DockPanel.cs
internal void ResetDummy()
        {
            DummyControl.ResetBackColor();
        }

2. Example

Project: PKMN-NTR
Source File: MainForm.cs
private void validateComboBox(object sender)
        {
            if (!formInitialized)
                return;
            ComboBox cb = sender as ComboBox;
            if (cb == null)
                return;

            if (cb.Text == "")
            { cb.SelectedIndex = 0; return; }
            if (cb.SelectedValue == null)
                cb.BackColor = Color.DarkSalmon;
            else
                cb.ResetBackColor();
        }

3. Example

Project: PKHeX
Source File: PKMEditor.cs
private void ValidateComboBox(object sender)
        {
            if (!fieldsInitialized)
                return;
            ComboBox cb = sender as ComboBox;
            if (cb == null)
                return;

            if (cb.Text == "" && cb.Items.Count > 0)
            { cb.SelectedIndex = 0; return; }
            if (cb.SelectedValue == null)
                cb.BackColor = Color.DarkSalmon;
            else
                cb.ResetBackColor();
        }

4. Example

Project: TileIconifier
Source File: SkinnableTabControl.cs
private void RefreshTabPageColors(TabPage tabPage)
        {
            //We don't touch to the tab pages in design mode to prevent
            //the designer from setting the property value in the designer 
            //generated file. As a side effect of this check, the designer 
            //preview is not faithful to the actual result.                  
            if (DesignMode) return;

            if (FlatStyle == FlatStyle.Flat)
            {
                tabPage.UseVisualStyleBackColor = false;
                tabPage.BackColor = FlatTabSelectedBackColor;
                tabPage.ForeColor = FlatTabSelectedForeColor;
            }
            else
            {
                tabPage.ResetBackColor();
                tabPage.ResetForeColor();
                tabPage.UseVisualStyleBackColor = true;
            }
        }

5. Example

Project: KeeThief
Source File: PwInputControlGroup.cs
private void UpdateUI()
		{
			if((m_uBlockUIUpdate > 0) || m_bInitializing) return;
			++m_uBloc/n ..... /n //View Source file for more details /n }