[求助]Listview的item事件(续)j各位来看看
哎。。。。问题没解决在开一贴。。。。
各位帮帮忙哈。。
2005-05-04 22:05
对了,那个附件是我的源码,问题就在那个 private void FilesView_ItemActivate(object sender,System.EventArgs e) { try { string FullName=FilesView.SelectedItems [0].Tag.ToString (); if(FilesView.SelectedItems [0].ImageIndex ==1) { MessageBox.Show("这是文本文件");
} else { if(FilesView.SelectedItems [0].ImageIndex==2) System.Diagnostics.Process.Start(FullName); else { txtCurPath.Text=FullName; FillFilesView(FullName); CurPath.Add(FullName); } }
} catch(Exception ex) { MessageBox.Show(ex.Message); }
} 里面没法响应。。

2005-05-04 22:10
你附件的那个工程没加上楼上那段代码啊!
2005-05-05 08:09
根本没问题,你新开事件,然后加上那段代码就没问题了。
2005-05-05 08:10
2005-05-05 09:50
2005-05-05 10:49