Added: Apr 28, 2002
Snippet uploaded by: snippet
Written By: unknown
Demo: Sorry, no demo
Here is another way...via music...make a form and call it frmSplash or whatever and set it as your opening form(Main) Then you call a wav file and play it async so that nothing can happen until the wav file is finished playing. They get to see your spash or nag screen accompanied to your choice of music and can do nothing till it completes and opens your second or RealMain form.
Highlight all by clicking in box
API Function to play the sound
'bas module code
Public Declare Function PlaySound Lib "winmm.dll" _
Alias "PlaySoundA" (ByVal lpszName As String, _
ByVal hModule As Long, ByVal dwFlags As Long) As Long
' play asynchronously
Public Const SND_ASYNC = &H1
' loop the sound until Next sndPlaySound is called
Public Const SND_LOOP = &H8
' lpszSoundName points To a memory file
Public Const SND_MEMORY = &H4
' silence Not default, If sound not found
Public Const SND_NODEFAULT = &H2
' don't stop any currently playing sound
Public Const SND_NOSTOP = &H10
' play synchronously (default), halts prog use till done playing
Public Const SND_SYNC = &H0
Private Sub Form_Activate()
frmSpl.Picture = LoadPicture(App.Path & "/dogdance.jpg")
Private Sub Form_GotFocus()
PlaySound App.Path & "dogsout.wav", SND_ASYNC, H1
FrmMain.Visible = True
Set frmSpl = Nothing
No Comments to show
Please completely fill out the form below if you want to review this snippet. All reviews are subject to validation.
Adding your comment. Please wait...
Thanks for adding your comment!. After further review it will be added.
There was a problem adding your comment. Please try again.
Please complete all the fields in the form before sending.