Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ' Deactivate the keyboard.
- Application.OnKey "^d", "KeyboardOn"
- Application.DataEntryMode = True
- ' Display the splash form non-modally.
- ssiWaitDialog.TaskDone = False
- ssiWaitDialog.Show False
- ' Close the splash form.
- ssiWaitDialog.TaskDone = True
- ssiWaitDialog.Hide
- ' Re-activate the keyboard.
- Application.DataEntryMode = False
- ' Set true when the long task is done.
- Public TaskDone As Boolean
- Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer)
- Cancel = Not TaskDone
- End Sub
- ' Deactivate the keyboard.
- Application.OnKey "^d", "KeyboardOn"
- Application.DataEntryMode = True
- ' Display the splash form non-modally.
- ssiWaitDialog.TaskDone = False
- ssiWaitDialog.Show False
- DoEvents
Add Comment
Please, Sign In to add comment