Here is the code :
Chess(z).BackColor = #FFFFFF
It is not working, how to make it work :))
Here is the code :
Chess(z).BackColor = #FFFFFF
It is not working, how to make it work :))
If you are using Windows Forms, you probably want System.Drawing.Color. You can either use the static property White
or in the general case you can construct your own color using the FromArgb
method.
If you are using WPF, you can achieve something similar by using System.Windows.Media.Colors.White
, or constructing your own color using the FromRgb method on System.Windows.Media.Color.
You can use color constants:
Chess(z).BackColor = Color.White
Or create a color value from color components
Chess(z).BackColor = Color.FromArgb(&HFF, &HFF, &HFF)