C# 3.0 - Converting string / object to System.Drawing.Point |
| Aldo Liaks posted at 11-May-08 01:09 |
Hi guys,
I am still working on a multilingual application.
I am trying to use the statement below, but getting an exception.
I first tried with the value è "11, 19" in the resource file.
tabControl1.Location = (Point)Enum.Parse(typeof(Point), rmLanguage.GetString("tabControl1.Location"));
Exception: An unhandled exception of type 'System.ArgumentException' occurred in mscorlib.dll. Additional information: Type provided must be an Enum.
Then I tried changing the value in resource file to è new System.Drawing.Point(11, 19)
And still getting the same exception: An unhandled exception of type 'System.ArgumentException' occurred in mscorlib.dll. Additional information: Type provided must be an Enum.
I'll appreciate any help,
Thanks,
Aldo. |
|