The following code is taken from a measureup test for the 70-536 Microsoft .NET exam.
private void frmMain_Paint(object sender, PaintEventArgs e)
System.ComponentModel.TypeConverter rectConverter =
Rectangle rect = (Rectangle)rectConverter.ConvertFromString("50,50,200,200"); //fails
Rectangle rect = (Rectangle)rectConverter.ConvertFromString("50,50,200,200");
Yeah, I can't reproduce it, but don't get stuck on that minor detail, looks like you're trying to figure out a bigger problem than that, just make the rectangle work and return to this later if it keeps bugging you. Something like this should work..
rect.Height = 200; rect.Width = 200; rect.PointToScreen(new Point(50, 50));