Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Music on a Form
#1
Author: grimsk8ter11
Difficulty: 1/5

This is a simple tutorial to add music to the Main Menu, login screen, etc.

:: CLIENT SIDE ::
Open up the form code you want music in, such as frmMainMenu.

Add this code(unless the form_load exists, then just add the containing code):
Code:
Private Sub Form_Load()
    Call PlayMidi("musicname.ext")
End Sub

Just change musicname.ext to whatever music you want. Then, for every button you want to stop the music, such as the Login button, you would double click on the button and add this code:
Code:
Call StopMidi
That's all!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)