kentheprogger Posted April 3, 2006 Posted April 3, 2006 I have run into a little problem, I have an XML document that I read controls from and instance them to a form. What I want to do is without if statements, cast a string color like "White" to System.Drawing.Color. Any help would be greatly appreciated. Quote
kentheprogger Posted April 3, 2006 Author Posted April 3, 2006 I have run into a little problem, I have an XML document that I read controls from and instance them to a form. What I want to do is without if statements, cast a string color like "White" to System.Drawing.Color. Any help would be greatly appreciated. Solved my own problem, it was simple: Color.FromName("White") Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.