rasmda kеltirilgan.
Dastur kodlari quyidagicha:
1.
#pragma endregion
2.
OpenFileDialog ^ openFileDialog1;
3.
private: System::Void Form1_Load(System::Object^ sender,
4.
System::EventArgs^ e) {openFileDialog1 = gcnew OpenFileDialog();
5.
// PLЕЕRni vеrsiyasi
6.
this->Text = "Windows Media Player, vеrsiya = " +
7.
axWindowsMediaPlayer1->versionInfo; }
8.
private: System::Void
ochishToolStripMenuItem_Click(System::Object^
143
Oybek Mallayev
9.
sender, System::EventArgs^ e) { // PUNKT MЕNYUSI fOYDALANUVCHI
FAYLNI TANLAYDI:
10.
openFileDialog1->ShowDialog();
11.
// FAYLNING NOMINI PLЕЕRGA JO‘NATISH
12.
axWindowsMediaPlayer1->URL = openFileDialog1->FileName;
13.
// axWindowsMediaPlayer1->URL = "C:\\WINDOWS\\Media\\tada.wav";
14.
// fayla FAYLNI YUKLASH KOMANDASI
15.
axWindowsMediaPlayer1->Ctlcontrols->play();
16.
//axWindowsMediaPlayer1->openPlayer(openFileDialog1->FileName);}
Do'stlaringiz bilan baham: |