About 52 results
Open links in new tab
  1. Changing the BackColor of a Windows Form - Stack Overflow

    MainForm.BackColor = System.Drawing.Color.Black; // <class name>.<property> What the C# compiler does first is look for a local class variable called MainForm. Since there was none, it then looked …

  2. c# - Set form backcolor to custom color - Stack Overflow

    May 23, 2010 · How can I set a form's backcolor to a custom color (such as light pink) using C# code?

  3. How to reset to default button BackColor? - Stack Overflow

    May 13, 2012 · The BackColor property is an ambient property by default, meaning that it inherits its value from its parent control. When you set it explicitly to a particular value, that overrides the …

  4. c# - Transparent background on winforms? - Stack Overflow

    Dec 8, 2010 · I wanted to make my windows form transparent so removed the borders, controls and everything leaving only the forms box, then I tried to the BackColor and TransparencyKey to …

  5. How can I call the Control color, I mean the default forms color?

    For instance, to make something blue I would go: this.BackColor = Color.LightBlue; How can I summon the Control color, the khaki one. Thanks SO.

  6. .net - How to set label backcolor in VB.Net - Stack Overflow

    Jul 22, 2010 · How to set label backcolor in VB.Net Asked 15 years, 5 months ago Modified 15 years, 5 months ago Viewed 43k times

  7. How do I change the background color of a text box based on the …

    Jul 7, 2016 · Private Sub TextBox1_Change() TextBox1.BackColor = RGB(255, 0, 0) End Sub You'll want to put that in the TextBox1 object (double clicking it will get you there). The color change will be …

  8. Background color of a ListBox item (Windows Forms)

    Sep 18, 2008 · How can I set the background color of a specific item in a System.Windows.Forms.ListBox? I would like to be able to set multiple ones if possible.

  9. DataGridView changing cell background color - Stack Overflow

    { row.Cells[color.Index].Style.BackColor = Color.FromArgb(((GesTest.dsEssais.FMstatusAnomalieRow)row.DataBoundItem).iColor); } } I am …

  10. C#: Changing Button BackColor has no effect - Stack Overflow

    Dec 23, 2015 · If FlatStyle for button is set to System, it will not show any backcolor rather use backcolor from template of system colors.