Writing a vb.net program that will be used on machines with different screens and resolution settings. In Java I could get the screen size and use it to set the pane size. How do I get the screen size in vb.net?
Thanks
Find screen size
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Scott LysleRank #49 · 31K reputationPosted Oct 26, 2006, 6:22 PM EDT
Dim
intHeight As Integer Dim intWidth As IntegerintHeight = System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Height
intWidth = System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Width
MessageBox.Show(intWidth.ToString() &
" by " & intHeight.ToString())