Results 1 to 2 of 2

Thread: Resizing picture and frame

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 1999
    Posts
    184

    Arrow

    Hi,

    This is my problem.
    I have a slideshow program
    I am making.The pictures
    that appear in the slideshow are
    to big to fit the screen.
    I want the pictures that appear
    to be about 2/3 of the screen.width

    So could someone give me the
    code to resize the PICTURE that
    is in the frame, not just the
    frame width and height.

    Thanks!



    [Edited by Dayo312 on 06-15-2000 at 05:29 PM]
    Evan Duffield --------
    --- [email protected]
    - -
    VB6 - Learning Edition
    - -


  2. #2
    Guest
    Use the Screen Object to get the size of the screen.

    Code:
    TheWidth = ( Screen.Width / 3 ) * 2
    TheHeight = Screen.Height
    
    Form1.PaintPicture 0, 0, TheWidth, TheHeight

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width