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
Printable View
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
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
[email protected]
[email protected]
[This message has been edited by Aaron Young (edited 11-11-1999).]