hello every1, pls am new to programming . doin my undergrad dissertation on cd database. cd is manually put into cd drive. cd contents like artist, song, etc, are copied off the cd and then put into a database.
right now, am having problems with the copying of cd contents. my code gives no error but its not retrieving the contents. tested with the same cd.using a textbox as a storage of contents for now.
can som1 pls help me with this code pls or pls help with another way of copying the cd contents. i dnt know wat else to do. my deadline is in 3wks. PLS HELP!!!
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using WMPLib;
using AxWMPLib;
namespace CdRomManagement
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
axWindowsMediaPlayer1.CdromMediaChange += new AxWMPLib._WMPOCXEvents_CdromMediaChangeEventHandler(axWindowsMediaPlayer1_CdromMediaChange);
}
private void axWindowsMediaPlayer1_CdromMediaChange(object sender, AxWMPLib._WMPOCXEvents_CdromMediaChangeEvent e)
{
axWindowsMediaPlayer1.currentPlaylist = axWindowsMediaPlayer1.cdromCollection.Item(e.cdromNum).Playlist;
axWindowsMediaPlayer1.Ctlcontrols.play();
this.textBox1.Text = axWindowsMediaPlayer1.currentMedia.getItemInfo("Genre");
}
}
}