Is there any way or API to detect the Screen Resolution in VB 6.
dilip_singh3 0 Newbie Poster
Recommended Answers
Jump to PostHi,
You dont need an API to know the Resolution.., Use Screen Object of VB:
msgbox "Width = " & Screen.Width/15 _ & vbcrlf _ & " Height = " & Screen.Height/15
Regards
Veena
Jump to PostYes, use twipsperpixel... I recently found this changed on wide-screen flat panels, and if you don't adjust for it, some elements on your forms will look crappy.
Jump to PostYes, the SysInfo control has an event called DisplayChanged which fires when the screen resolution has been changed. It has many others, including one for SysColorsChanged, several for battery status, power changes and device arrival/removal.
All 12 Replies
ryan_vietnow 13 Posting Pro
choudhuryshouvi 33 Posting Pro
QVeen72 104 Posting Shark
BC_Programming 0 Newbie Poster
SCBWV 71 Junior Poster
rjrodrig 0 Newbie Poster
SCBWV 71 Junior Poster
rjrodrig 0 Newbie Poster
EddyJawed commented: This is a good poster with common sense straight to the point code +0
gr3en39 0 Newbie Poster
EddyJawed commented: No good code doesn't work +0
aka_amboy 0 Newbie Poster
Myron Thomas 0 Newbie Poster
AndreRet 526 Senior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.