VB and Button Backcolor

Discussion in 'Trading Software' started by TGregg, Jul 31, 2003.

  1. TGregg


    Got some buttons that don't look very disabled when they're set to enable=false, so I want to change the backcolor property (I think). Of course, this isn't anything as simple as a number, or even an input from the RGB function. No, it's something else, undoubtably some special variable type designed specifically to hold background colors on buttons.

    A while ago, I suggested strongly typed languages where a good idea. I've changed my mind back to like weak types.

    Anyway, can somebody print some code that changes the backcolor of a button in VB? Thanks. Oh, and I'm talkin recent VB. No VB6 or any of that stuff. Strictly .Net.
  2. TGregg


    Nervermind, I found it. Geez:

    Button1.BackColor = System.Drawing.Color.LightSeaGreen