Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
955
Changing the height of the webgrid depending on the screen resolution
posted

I have read quite a few posts on this topic, but just can't seem to get this to work. I found this somewhere, but it seems to tell me what the max width I can possibly have every time:

If Windows.Forms.Screen.PrimaryScreen.Bounds.Width = 1680 Then
gridMembers.Height = 500
ElseIf Windows.Forms.Screen.PrimaryScreen.Bounds.Width = 1920
Then
gridMembers.Height = 850
End If


When I step through the code, it says the Windows.Forms.Screen.PrimaryScreen.Bounds.Width is 1920 every time even if I change the resolution before running the code.

Parents Reply Children
No Data