Quantcast
Channel: .NET Framework Class Libraries forum
Viewing all articles
Browse latest Browse all 8156

Font object from saved string

$
0
0

Problem: String to object Font:  This works fine.

FontConverter ^ fc = gcnew FontConverter();

String ^ savedFont = fc->ConvertToString(myFont);

But when I try to go back I get the error:

myFont = fc->ConvertFromString(savedFont);

Cannot convert from 'System::Object' to 'System::Drawing::Font'

What's wrong?

Thanks Frousouna Man

'


Viewing all articles
Browse latest Browse all 8156

Trending Articles



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