.NET
Microsoft Technologies based on the .NET software framework.
4,108 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
if the color of textbox is white then the textbox text is 0xffffff
how can i used it as a integer
Color myColor = textBox26.BackColor;
int nColorWin32 = ColorTranslator.ToWin32(myColor);
textBox26.Text = "0x" + string.Format("{0:X6}", nColorWin32);int value;
Int32.TryParse(textBox26.Text, out value);
//i need to change the color of graph according to the textbox color
layer.addDataSet(darray, value);
You can do :
int value = Convert.ToInt32(textBox26.Text, 16);