krisbrixon
Programmer
Right now I have the following code to set the alternate color for listview's
Public Shared gBackGoundColor As System.Drawing.Color = System.Drawing.Color.LightBlue
Now, I want to have a combobox with a listing of colors that the user can select and set the gBackGroundColor to the value of the combobox. (I do not want to use colorpicker)
i.e. Let's say they pick "Green". So, how do I change the String value of Green to the System.Drawing.Color of Green?
---
(In reality this is an example of a larger question. Is it possible to have a string variable(s1) hold the name of another object(s2) and get the program to use the value that is represented in S1?)
For example:
In Clipper you could have:
sVar2 := "Test001"
sVar1 := "sVar2"
---
? sVar1 'Would Print = sVar2
? (sVar1) 'Would Print = "Test001"
? sVar2 'Would Print = "Test001"
Thanks
Kris
Public Shared gBackGoundColor As System.Drawing.Color = System.Drawing.Color.LightBlue
Now, I want to have a combobox with a listing of colors that the user can select and set the gBackGroundColor to the value of the combobox. (I do not want to use colorpicker)
i.e. Let's say they pick "Green". So, how do I change the String value of Green to the System.Drawing.Color of Green?
---
(In reality this is an example of a larger question. Is it possible to have a string variable(s1) hold the name of another object(s2) and get the program to use the value that is represented in S1?)
For example:
In Clipper you could have:
sVar2 := "Test001"
sVar1 := "sVar2"
---
? sVar1 'Would Print = sVar2
? (sVar1) 'Would Print = "Test001"
? sVar2 'Would Print = "Test001"
Thanks
Kris