|
I used the WebBrowser1 control to play GIF animation. I made a form FrmSplash and placed a WebBrowser1 on it. As a separate form, the GIF can be opened normally, and the GIF picture can be seen, but if it is placed in another form In the LOAD event of FrmTest, I found that the window could not be opened or displayed. I don't know why?
The code in the FrmTest form LOAD event is as follows:
Private Sub Form_Load ()
FrmSplash.show
'FrmTest form load event to extract data from the database,
'It takes a long time to open FrmTest, preventing the user from being impatient while waiting, so the animation is displayed
unlaod FrmSplash
'Close FrmSplash after FrmTest form opens
End Sub |
|