odd Custom control size issue
-
I'm trying to understand what's going on... When I created the custom control and dynamic buttons, and run it on my pc. i see everything on my GUI. But when running on my co-worker's computer, the dynamic buttons aren't showing. These buttons are hard coded in their GUI location. I apparently discovered that the buttons were hidden behind the custom control on my co-worker's computer. The computer and gui size are as follows: my computer (x86): Screen resolution - 32-bit (true color) 1440x990 GUI size: 549, 352 my co-worker (x64): Screen resolution - 32-bit (true color) 1920x1080 GUI size: 732, 433 What gives? I had believed that the GUI would be at the same size. Care anyone explain? My co-worker got my source code and her visual studio (same version as mine) and the custom control size has shown to be bigger size than mine.
-
I'm trying to understand what's going on... When I created the custom control and dynamic buttons, and run it on my pc. i see everything on my GUI. But when running on my co-worker's computer, the dynamic buttons aren't showing. These buttons are hard coded in their GUI location. I apparently discovered that the buttons were hidden behind the custom control on my co-worker's computer. The computer and gui size are as follows: my computer (x86): Screen resolution - 32-bit (true color) 1440x990 GUI size: 549, 352 my co-worker (x64): Screen resolution - 32-bit (true color) 1920x1080 GUI size: 732, 433 What gives? I had believed that the GUI would be at the same size. Care anyone explain? My co-worker got my source code and her visual studio (same version as mine) and the custom control size has shown to be bigger size than mine.
What DPI are you both viewing at?
*pre-emptive celebratory nipple tassle jiggle* - Sean Ewington
"Mind bleach! Send me mind bleach!" - Nagy Vilmos
CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier
-
What DPI are you both viewing at?
*pre-emptive celebratory nipple tassle jiggle* - Sean Ewington
"Mind bleach! Send me mind bleach!" - Nagy Vilmos
CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier
-
Ahh! That explains it! My pc is set to 100% (96 DPI) and she has 125% (120 DPI). So that would mean I would need to make adjustment on my code to calculate DPI value. Gonna find out how to do this!
Or not. If you use anchoring, you effectively remove the dependency on resolution.
*pre-emptive celebratory nipple tassle jiggle* - Sean Ewington
"Mind bleach! Send me mind bleach!" - Nagy Vilmos
CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier
-
I'm trying to understand what's going on... When I created the custom control and dynamic buttons, and run it on my pc. i see everything on my GUI. But when running on my co-worker's computer, the dynamic buttons aren't showing. These buttons are hard coded in their GUI location. I apparently discovered that the buttons were hidden behind the custom control on my co-worker's computer. The computer and gui size are as follows: my computer (x86): Screen resolution - 32-bit (true color) 1440x990 GUI size: 549, 352 my co-worker (x64): Screen resolution - 32-bit (true color) 1920x1080 GUI size: 732, 433 What gives? I had believed that the GUI would be at the same size. Care anyone explain? My co-worker got my source code and her visual studio (same version as mine) and the custom control size has shown to be bigger size than mine.
Rather than recalculating the positions yourself, you may get satisfactory results by using the Anchor or Dock properties of your Controls; setting Form.AutoSize often helps too. :)
Luc Pattyn [My Articles] Nil Volentibus Arduum