11.18 站立会议
今天我们研究了昨天浏览button不能正常运行的原因,但并未解决。百度了很多,大家也思考了很多,把浏览button内的代码调整如下:
发现可以正常运行。
然后开始编写播放的控件代码,如下:
private void button2_Click(object sender,System.EventArgs e)
{//播放mp3文件
if(this.listView1.Items.Count>0)
{
if(this.listView1.SelectedItems.Count>0)
{
int ipos=this.listView1.SelectedItems[0].Index;
string FileName=this.listView1.Items[ipos].SubItems[3].Text;
this.axMediaPlayer1.Play();
}
}
else
{
MessageBox.Show("请选择歌曲!","信息提示",MessageBoxButtons.OK,MessageBoxIcon.Information);
}
}
发现了错误提示跟axwindowsplayer有关的filename属性都是未定义的状态
小组内还没有解决的办法,准备带着问题编程,边前进,边解决。