Convert text box text into Argb argument

Posted by Jimmy on Stack Overflow See other posts from Stack Overflow or by Jimmy
Published on 2010-04-15T18:06:00Z Indexed on 2010/04/15 18:13 UTC
Read the original article Hit count: 271

Filed under:
|

I have been looking into coloring objects like ellipses with code such as

        SolidBrush trnsRedBrush = new SolidBrush(Color.FromArgb(0x78FF0000));

I'd like to play around further with this by entering FromArgb's argument into a textbox on a form, then using the textbox to set the Brush's color. How would I convert the textbox's text into an argument usable by FromArgb?

© Stack Overflow or respective owner

Related posts about c#

Related posts about graphics