Hello,
I was developing a GUI for a software on WinXP platform but recently shifted to Win7.
Running it on win7 resulted in scaling of the form/usercontrol but not the graphics drawn. Now, this is creating problem.
Situation : :~
GUI Form has a panel with a grid drawn (Graphics) on it.
A UserControl is added to that panel. Usercontrol has a "Label" and there is some text written on that label.
Problem : :((
The original User Control looks like this in VS IDE.
image1:
http://img821.imageshack.us/i/45653419.jpg[
^]
Running it on WindXP showed the control as required:
image2 :
http://img6.imageshack.us/img6/9275/bb3m.jpg[
^]
Executing it on Win7 resulted in the following 2
situations.
case1 : [AutoScaleMode = Font]
It gets scaled and goes out of the specified size of 4x2 grid blocks
As scaling is nonuniform in hight and width, the UserControl rectangle becomes out of ratio.
image3:
http://img146.imageshack.us/i/bb1px.jpg/[
^]
case2: [AutoScaleMode = None]
UserControl dont get scaled up, text still gets bigger and thus not completely visible.
image4:
http://img301.imageshack.us/i/bb2w.jpg/[
^]
On runtime the AutoScaleFactor was (1,1) on all cases
Help Required: :confused:
How to make the font size same as during the design in VS-IDE. (image1)
There is no problem, if the software becomes of fixed size and fixed font size.
Or some other way around to make everything looks appropriately scaled (keeping the original size ratio).
Do i need to scale the grid in background as well ?
Thanks already.