Suppose I have a string :
str1 = "System.Drawing.Color.Yellow";
How can I convert this to a colour that I can use as a property against something like an item in a ListView?
For instance I want to set :
ListViewItem item = new ListViewItem("some text"
item.ForeColour = {code here to convert str1}
ListView1.Items.Add(item);
Can anyone help me with the missing bit ?
Thanks in advance ...
Steve
str1 = "System.Drawing.Color.Yellow";
How can I convert this to a colour that I can use as a property against something like an item in a ListView?
For instance I want to set :
ListViewItem item = new ListViewItem("some text"
item.ForeColour = {code here to convert str1}
ListView1.Items.Add(item);
Can anyone help me with the missing bit ?
Thanks in advance ...
Steve