int axType =2;
string fileNameOf = "c:\1.rm";if (axType == 1){
//mediaplay
this.axWindowsMediaPlayer1.Visible = true;
this.axWindowsMediaPlayer1.URL = fileNameOf;
}else{
/realplayer
this.axRealAudio1.Visible = true;
this.axRealAudio1.SetVolume((short)50);
//此行表示realplayer 的可见控件,本例为图框+控制条
this.axRealAudio1.Controls = "ImageWindow,controlpanel"
this.axRealAudio1.Source = fileNameOf;
}