Results 1 to 2 of 2

Thread: memory

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 1999
    Posts
    308

    Post

    I need to reload a bmp file on each resize event. it slows the resize of the form too much.
    If I can load a file into the memory and work with this file in run time?

    LG

  2. #2
    Guru Aaron Young's Avatar
    Join Date
    Jun 1999
    Location
    Red Wing, MN, USA
    Posts
    2,176

    Post

    why do you need to Reload the BMP? If all you want to do is make the Bitmap fit the Form, try this:
    Code:
    Private Sub Form_Paint()
        PaintPicture Image, 0, 0, ScaleWidth, ScaleHeight, 0, 0, ScaleX(Picture.Width, vbHimetric, vbTwips), ScaleY(Picture.Height, vbHimetric, vbTwips)
    End Sub
    
    Private Sub Form_Resize()
        If WindowState <> vbMinimized Then Form_Paint
    End Sub
    ------------------
    Aaron Young
    Analyst Programmer
    aarony@redwingsoftware.com
    adyoung@win.bright.net


    [This message has been edited by Aaron Young (edited 11-11-1999).]

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