Not a Member Yet,
Click here to Register
How do you like the new design?
It's cool, great job
[tally: 70%] 70%
It's okay
[tally: 20%] 20%
Its OK but I liked the old layout better
[tally: 0%] 0%
Please bring the old one back
[tally: 10%] 10%

votes: 10

ID: 152
Viewed: 2468
Added: Apr 28, 2002
Version:
Snippet uploaded by: snippet
Written By: unknown
Demo: Sorry, no demo



User Rated at: 0 Stars
Rate This:

Thank you for your vote. Please wait...

It appears you already voted for this snippet

It appears your vote value was empty

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
<!---Declaration--->
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

Highlight All
<!---Code--->
   Private Sub Form_Activate()
frmSpl.Picture = LoadPicture(App.Path & "/dogdance.jpg")
End Sub

Private Sub Form_GotFocus()
PlaySound App.Path & "dogsout.wav", SND_ASYNC, H1
FrmMain.Visible = True
Unload frmSpl
Set frmSpl = Nothing
End Sub;


No Comments to show

Please completely fill out the form below if you want to review this snippet. All reviews are subject to validation.


Replying to a Comment...


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.

© 2002 - 2017 snippetlibrary.com All Rights Reserved. Conditions