Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Can you use Windows API to find the screen resolution?
Index -> Programming, Visual Basic and Other Basics -> Visual Basic Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
HazySmoke)345




PostPosted: Mon Nov 21, 2005 7:01 pm   Post subject: Can you use Windows API to find the screen resolution?

Yes... I know that the component SysInfo Control can do it, too. But I'm looking for a different approach.
Sponsor
Sponsor
Sponsor
sponsor
Brightguy




PostPosted: Wed Nov 23, 2005 9:44 pm   Post subject: Re: Can you use Windows API to find the screen resolution?

If you just want the screen height and width, Screen.Height and Screen.Width will return the height/width in twips. (You can divide them by Screen.TwipsPerPixelX and Screen.TwipsPerPixelY to get them in pixels.)

If you really prefer using the WinAPI... [after a Google search] ...you can get it with GetDesktopWindow and GetWindowRect.
Display posts from previous:   
   Index -> Programming, Visual Basic and Other Basics -> Visual Basic Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: