|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Detect Screen ResolutionDoes anyone know a fast and easy way of detecting the user's current
screen resolution in VB.NET? Thanks in advance, *** Sent via Developersdex http://www.developersdex.com *** A. Gaubatz wrote:
> Does anyone know a fast and easy way of detecting the user's current Dim ScrnRes As Rectangle = Screen.PrimaryScreen.Bounds> screen resolution in VB.NET? > > Thanks in advance, > > > *** Sent via Developersdex http://www.developersdex.com *** Dim W As Integer = ScrnRes.Width Dim H As Integer = ScrnRes.Height Also remember - Dim ScrnRes As Rectangle = Screen.PrimaryScreen.WorkingArea Hope this helps ShaneO There are 10 kinds of people - Those who understand Binary and those who don't. If you are using .Net 2.0, you can use:
My.Computer.Screen.PrimaryScreen.Bounds.Height My.Computer.Screen.PrimaryScreen.Bounds.Width -- Show quoteHide quote--ewok MCSA+M,MCSE, MCSD, MCDBA,MCITP "A. Gaubatz" wrote: > Does anyone know a fast and easy way of detecting the user's current > screen resolution in VB.NET? > > Thanks in advance, > > > *** Sent via Developersdex http://www.developersdex.com *** >
VB.NET Screen Stops Refreshing After Losing Focus??
Why choose SQL Express over Access? Offset lines appearing over form after delay (NVIDIA Chipset) UI to enter values into a structure Soap Formatter namespace not found Crypto removing white spaces from byte array Restart, but after a delay Update database field WTSEnumerateProcesses My object/class/whatever |
|||||||||||||||||||||||