|
Post by jaywalker on Jan 15, 2013 3:41:13 GMT 1
Wrote a little display program to show a listview box sized for 36 items and a a grid of 36 image boxes beside it on the form. When I run from the IDE works perfect - when I run it compiled the listbox displays about 40 items - everything else is identical - form size list box size font size etc. Only thing that has changed is the size of the list box grid. Any idea what might cause this and how I might correct it?
|
|
|
Post by dragonjim on Jan 15, 2013 14:22:26 GMT 1
Does the same thing happen without the image boxes?
|
|
|
Post by jaywalker on Jan 15, 2013 21:21:18 GMT 1
I tried running a small listview demo from the code library and it displays 8 items when run from the IDE and nine items when run compiled. So I am assuming for the moment that this behavior has nothing to do with any local interaction with my code or the other elements in my program display. I am running this program on Vista - will have to check and see if I get the same behavior on XP. In any case, thanks for the question - it got me thinking of the broader context outside my code rather than trying to ferret out internal interactions.
|
|
|
Post by jaywalker on Jan 15, 2013 22:16:49 GMT 1
Ran the listview demo under XP - there was a subtle difference in the size of the listbox title display - compiled version title box is about one pixel shorter in height than the one produced with the IDE. The number of list items displayed is identical for the compiled and IDE run displays. Will assume provisionally that the problem is Vista specific. What can I do to bring the IDE/Compiled versions into sync?
|
|
|
Post by jaywalker on Jan 16, 2013 0:08:38 GMT 1
Problem solved sort of. Setting program to run in XP compatibility mode under Vista brings the IDE/Compiled display disparity back into sync. Setting "Disable display scaling for high DPI settings" does the same thing. Apparently the same can be achieved by modifying registry settings - or appropriate API call - but this seems like overkill for a simple single user program - won't bother to go this route.
Thanks again to dragonjim for the question that got me researching in the right direction.
|
|
|
Post by dragonjim on Jan 16, 2013 10:21:26 GMT 1
Glad to be able to help.
|
|