| |

VerySource

 Forgot password?
 Register
Search
View: 791|Reply: 7

Use WebBrowser1 control to play GIF animation

[Copy link]

3

Threads

10

Posts

11.00

Credits

Newbie

Rank: 1

Credits
11.00

 China

Post time: 2020-1-27 16:00:01
| Show all posts |Read mode
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
Reply

Use magic Report

0

Threads

46

Posts

23.00

Credits

Newbie

Rank: 1

Credits
23.00

 China

Post time: 2020-2-21 23:45:01
| Show all posts
WebBrowser1 adds HTML to achieve

<img src = "picture path" border = 0>

Gif98 This control is also very convenient, try it
Reply

Use magic Report

3

Threads

10

Posts

11.00

Credits

Newbie

Rank: 1

Credits
11.00

 China

 Author| Post time: 2020-2-22 21:00:01
| Show all posts
I downloaded Gif98.DLL and tried it out, but found that there was rogue software. As soon as I registered this DLL, the rogue software was also registered. I do n’t know why I ca n’t use WebBrowser1? If I open it in the menu separately It is possible to display the animation FRMSPLASH form. I don't know why it is not possible to open FRMSPLASH in the LOAD event of other forms? Thank you
Reply

Use magic Report

0

Threads

46

Posts

23.00

Credits

Newbie

Rank: 1

Credits
23.00

 China

Post time: 2020-2-29 23:00:01
| Show all posts
Gif98 is a foreign open source VC component.
Reply

Use magic Report

3

Threads

10

Posts

11.00

Credits

Newbie

Rank: 1

Credits
11.00

 China

 Author| Post time: 2020-3-1 13:15:01
| Show all posts
I just found out that the FRMSPLASH window is hidden behind the FrmTest window after opening it. How can I bring it to the front of FrmTest? If you mention it, you can see that frmSplash.ZOrder 0 does not work.
Reply

Use magic Report

3

Threads

10

Posts

11.00

Credits

Newbie

Rank: 1

Credits
11.00

 China

 Author| Post time: 2020-3-5 09:15:01
| Show all posts
set
Reply

Use magic Report

0

Threads

21

Posts

15.00

Credits

Newbie

Rank: 1

Credits
15.00

 United States

Post time: 2020-3-10 01:30:01
| Show all posts
upgrade to VB.Net and use picturebox
Reply

Use magic Report

3

Threads

10

Posts

11.00

Credits

Newbie

Rank: 1

Credits
11.00

 China

 Author| Post time: 2020-3-27 20:00:01
| Show all posts
No, VB can't even fix a GIF picture?
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list