visharad
March 10th, 2009, 06:02 AM
Take any winform control. As an example, suppose there is a button named btn1. If I write
btn1.Width = 150;
then the Width of betn1 becomes 150 pixels.
But, for all controls in a given winform, I do not want to use pixel as unit. Rather I want to use some unit, which does not depend on resolution, e.g, milimeter.
How do I do that?
btn1.Width = 150;
then the Width of betn1 becomes 150 pixels.
But, for all controls in a given winform, I do not want to use pixel as unit. Rather I want to use some unit, which does not depend on resolution, e.g, milimeter.
How do I do that?