Wednesday, December 02, 2009

VB.Net Application form, control sizes are different in different PC

VB.Net Application form, control sizes are different in different PC


http://social.msdn.microsoft.com/Forums/en-US/vbgeneral/thread/4229137f-d4e0-469e-8826-5e8117b3ecb7

Solve:
AutoScaleMode = None in MainForm

The AutoScaleMode property specifies the current automatic scaling mode of this control. Scaling by Font is useful if you want to have a control or form stretch or shrink according to the size of the fonts in the operating system, and should be used when the absolute size of the control or form does not matter. Scaling by DPI is useful when you want to size a control or form relative to the screen. For example, you may want to use dots per inch (DPI) scaling on a control displaying a chart or other graphic so that it always occupies a certain percentage of the screen.

No comments:

Post a Comment