Project Description
MmTimer 是一个多媒体定时器的C#简单封装。
It's developed in C#.

How to use it

You can use it as follows simply:

(1) add the dll reference to your project.

(2) using the namespace.

using Dongzr.MidiLite;

(3) define the EventHandler.

void timer1_Tick(object sender, EventArgs e)

(4) define the timer.

static MmTimer timer1;

(5) initial and start it.

timer1 = new MmTimer();
timer1.Mode = MmTimerMode.Periodic;
timer1.Interval = 1;
timer1.Tick += new EventHandler(timer1_Tick);

(6) stop and dispose it.


Maybe you will use it in windows form application more often:

(1) add the dll reference to your project.

(2) add the timer component to your form (your can find it in your tool box).

(3) edit the timer's properties.

(4) add the Tick EventHandler.

(5) start, stop.

Last edited Aug 27, 2010 at 12:38 AM by dzrjojo, version 8