LG
Nov 11th, 1999, 06:41 AM
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
Aaron Young
Nov 11th, 1999, 10:02 AM
why do you need to Reload the BMP? If all you want to do is make the Bitmap fit the Form, try this:
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).]