D
danzhonguk
Just got a problem about "my.Computer.Screen.WorkingArea". It seems
not to work properly.
I have got my windows application developed with VB.NET in Visual
Studio 2005. What I want to do is to change the size of my forms when
screen resolution changes. With the application running, I changed the
screen resolution from 1280 x 1024 to 1024 x 768. My event has been
fired up successfully just after I click "Apply" button on the
"Display Property" dialogue box. But the width returned by
"my.Computer.Screen.WorkingArea" is still 1280 instead of 1024
although the screen resolution has already changed to 1024 x 768. This
problem prevents my sub routine from running properly.
Anyone encountered the same problem before and has any ideas about
that? If it is a bug, is there any workaround?
Any comments will be very much appreciated.
not to work properly.
I have got my windows application developed with VB.NET in Visual
Studio 2005. What I want to do is to change the size of my forms when
screen resolution changes. With the application running, I changed the
screen resolution from 1280 x 1024 to 1024 x 768. My event has been
fired up successfully just after I click "Apply" button on the
"Display Property" dialogue box. But the width returned by
"my.Computer.Screen.WorkingArea" is still 1280 instead of 1024
although the screen resolution has already changed to 1024 x 768. This
problem prevents my sub routine from running properly.
Anyone encountered the same problem before and has any ideas about
that? If it is a bug, is there any workaround?
Any comments will be very much appreciated.