PDA

Click to See Complete Forum and Search --> : [solved] conversion [any help]


brown monkey
Jun 18th, 2004, 02:26 AM
anyone help with the conversion. this is from vb

CType(System.Enum.Parse(GetType(FontStyle), "Bold"), FontStyle)

i need help to convert this to C#. thanx...

Pirate
Jun 18th, 2004, 10:39 PM
This is in C# .
FontStyle f=((FontStyle)(Enum.Parse(typeof(FontStyle), "Bold")));

brown monkey
Jun 19th, 2004, 12:32 AM
thanx mate...