Hi again. I'm having another splash screen problem.
I have 3 forms namely login, main, splash. Once the user has authenticated himself, the main functions will be started and the splash screen is shown as well. My problem is that if the user moves or minimizes the splash screen, the main form is shown. I also tried setting the windowstate of the main form to minimized but another problem is that it can just be clicked on the taskbar and it will be in plain view again. How do I code this such that the main form will only be visible once certain variables are set and the splash is closed?
Currently, I am using these codes:
On the login screen(after checking the username and password with the database):
main.show
On the main screen:
Private Sub Form_Load()
Call CameraOn()
splash.show
End Sub
I plan to have a timer control on the splash form with the following code. loadokay is my Boolean trigger for the splash to disappear. It is triggered if all preparations in the main form are complete.
If (main.loadokay=True) Then
splash.hide
main.show
End If
However, this is no use if the main form can just be activated anytime or the splash screen can be moved aside or minimized.