To configure a custom sound, the MediaPlayer custom control can be used to play any MP3 media file or other sound file. There are a few steps to use this control:
- Download the control here: mediaplayer files
- Go to the “plugins” folder: C:\Program Files (x86)\Adroit Technologies\Adroit\SmartUI\plugins (there is a similar folder for MAPS installs)
- Create a “MediaPlayer” folder in the plugins folder and copy the files in there:
- Add the control in the Designer toolbox, by right clicking on the toolbox and selecting “Add Controls”:
- Drop the control on to a form:
- Drive the media player control via it’s properties:
The “MusicFileToOpen” property must include the FULL PATH TO THE FILE i.e. C:\MYSOUNDS\FILE.MP3 or something similar.
If the “StartPlaying” property is set to True, it will start playing the media file.