Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27355

Color from Fontdialog

$
0
0
I am using a fontdialog and all is working well except for a couple things.

When I use fontDlg.Color.ToKnownColor I get a integer and was really wanting a color name. So I tried color.tostring and I get Color[Black] for example. Is there anyway of just getting 'Black' without having to do a split or something similar?

Same with Font.Style. It returns an integer and I was looking for a string.

What this is for is to save all of the info from the fontdialog to a settings file so that I can pull this the next time the program is run.

Any suggestions greatly appreciated.
Jim

Viewing all articles
Browse latest Browse all 27355

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>