James

James

  • NA
  • 5
  • 0

AutoscaleMode.Dpi not working as expected

Sep 5 2007 1:13 PM

I'm developing a CAB-based application in VS.NET 2005 in C# that has a view/form with multiple custom controls. These controls each have a combination of a label and a textbox, checkbox, combobox, or datetimepicker. The machine I'm currently developing on is currently set for 120 DPI while the machine I'm testing on is at 96 DPI. All of the alignments are fine when I run the app on the 120 DPI machine, but when I run it on the 96 DPI machine, the alignments of each control are staggered randomly and the distance between the control's label and its respective textbox, combobox, checkbox, etc is much greater than it's supposed to be. Currently, the AutoscaleMode for each control, view, and the shell is set to Dpi. Does anyone know what's going on here and how to fix it ? Thanks.


Answers (4)