Screen Sizing - Max=stuck - Won't Get Off The Max Screen SizeFeb 11, 2011
VB.net / VisualStudio8 I have an application I've written that's been very stable. I had it set to exactly 1024x768 resolution, and to windowsstate=maximize (I think that's what it's always been).
I recently started coding to give the user the option to use the 1024x768 or to have the program detect the max size of the screen and use it.
That part works great... I'm using:
Dim MonitorWidth = Screen.PrimaryScreen.Bounds.Width
Dim MonitorHeight = Screen.PrimaryScreen.Bounds.Height
Me.Height = MonitorHeight
Me.Width = MonitorWidth
What I'm baffled by is that the application now won't get off the max screen size. It's using the max of the screen, even when I do not call the screen resizing code above. I'm trying to give the user the option of the application only taking up 1024x768 (and placed up to the top left) or maximizing the application using the full extents of the screen.