c# control location precision

Posted by AC on Stack Overflow See other posts from Stack Overflow or by AC
Published on 2010-04-14T22:10:49Z Indexed on 2010/04/14 22:13 UTC
Read the original article Hit count: 321

Filed under:
|
|

I need more precision then integer based locations when puttng controls on a form. It seems control.location only supports Point. Is there a work around for this?

Point p = new Point(100, 200); this.Location = p;// this works of course

PointF pF = new PointF(100.04f, 200.08f); this.Location = pF;// this does not work of course because Location expects a Point not PointF

Is there some setting on the base form, or base control I can set to have more location precision?

© Stack Overflow or respective owner

Related posts about winforms

Related posts about c#