When some one clicks on a item in the listview. How can I get the value of that.
here's my code
Code:string fname = GetFileNameWithoutExtension(m_Playable.FullRowSelect); //I need to get the file name's Name. Not the ext. label3.Show(); label3.Text = "Selected File Name : " + fname + ".bms"; m_ListRealted.Items.Clear(); string path = textBox2.Text; DirectoryInfo dr = new DirectoryInfo(@path); List<string> relatedfiles = new List<string>(); foreach (FileInfo related in dr.GetFiles(fname + ".*")) { relatedfiles.Add(related.Name.ToString()); } }




Reply With Quote