Reputation: 11
I have a login UserForm called frmLogin.
When I click on the "Login" button I connect to a database and after some checks and in case of positive response frmApplication gets shown.
Between the two forms and during the connection to a database I would like to show a form (frmLaunchingApplication) with an embedded WebBrowser containing an animated gif:
Lauching Userform
With the code I developed the gif image is not animated even if using DoEvents
.
This is how I manage the code on the Login button of frmLogin:
frmLogin.Hide
Load frmLaunchingApplication
DoEvents
frmLaunchingApplication.Show FormShowConstants.vbModeless
DoEvents
Connection to the database
If all checks are OK then
Load frmACPTrackRequest
frmACPTrackRequest.Show FormShowConstants.vbModeless
Unload frmLaunchingApplication
Upvotes: 0
Views: 51