• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 422
  • Last Modified:

ASP.net VB.net Label Forecolor

Hi

I have a string variable that holds the name of a ForeColor

I can'r use the following
 lbl1.ForeColor = oForeColor

What syntax would I use?
0
Murray Brown
Asked:
Murray Brown
1 Solution
 
Éric MoreauSenior .Net ConsultantCommented:
have you tried Color.FromName?

also check stackoverflow.com/questions/3391462/convert-string-to-color-in-c-sharp/3391478#3391478
0
 
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAuthor Commented:
Hi. Yes had just tried that
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now