Screen resolution

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Anushka448
    New Member
    • Sep 2008
    • 1

    Screen resolution

    Need a help ...
    While clicking on the form iam not getting load evet ,iam getting UserForm_Click( ) ...what i have to do get the load event...actualy i have to write a code in load event.
    Iam new to vb 6.3 ...hpw to debug...

    my need is to find the resolution of a system in vb 6.3...
    Iam able to find out in .net but in vb 6.3...screen attribute itself not there...
    According to screen resolution the userform should adjusted there positions....

    pls any idea regarding this....
  • deric
    New Member
    • Dec 2007
    • 92

    #2
    Hi...
    Use Form_Load() for the form load event...
    For the screen resolution, you can use the Screen object of VB. Take note that the width and height of the Screen object are in Twips unit. So you need to divide them by the Screen object's TwipsPerPixelX and TwipsPerPixelY properties to get the figures in pixel.
    Like,
    width = Screen.Width/Screen.TwipsPer PixelX
    height = Screen.Height/Screen.TwipsPer PixelY

    Comment

    Working...