5 Feb 2010 at 17:26 #1 Oddw1re Oddw1re Associate Joined 28 Feb 2007 Posts 969 Location Leeds/Sunderland I'm trying to get it so when I select a colour from the combo box it changes the FillBrush Colour I have this but it just shows a error: Code: SolidBrush FillBrush = new SolidBrush(Color.ComboBox3.Text);
I'm trying to get it so when I select a colour from the combo box it changes the FillBrush Colour I have this but it just shows a error: Code: SolidBrush FillBrush = new SolidBrush(Color.ComboBox3.Text);
5 Feb 2010 at 17:52 #2 Oddw1re Oddw1re Associate OP Joined 28 Feb 2007 Posts 969 Location Leeds/Sunderland Doesn't matter worked it out
5 Feb 2010 at 18:17 #3 Dj_Jestar Dj_Jestar Caporegime Joined 18 Oct 2002 Posts 29,493 Location Back in East London You probably wanted: Code: var FillBrush = new SolidBrush(new Color(ComboBox3.Text));
5 Feb 2010 at 21:40 #4 Oddw1re Oddw1re Associate OP Joined 28 Feb 2007 Posts 969 Location Leeds/Sunderland Dj_Jestar said: You probably wanted: Code: var FillBrush = new SolidBrush(new Color(ComboBox3.Text)); Click to expand... I just changed it to this and it worked: Code: SolidBrush FillBrush = new SolidBrush(Color.FromName (ComboBox3.Text));
Dj_Jestar said: You probably wanted: Code: var FillBrush = new SolidBrush(new Color(ComboBox3.Text)); Click to expand... I just changed it to this and it worked: Code: SolidBrush FillBrush = new SolidBrush(Color.FromName (ComboBox3.Text));