L
Linda Chen
I am using list view control, try to find the sub item
clicked by the mouse.Inside mouse_down method, I use
GetItemAt method but it always return me null value, here
is my sample code:
private void listView1_MouseDown(object sender,
MouseEventArgs e)
{
ListViewSubItem subItem =
this.GetListViewSubItem
(this.listFileHistory, new Point(e.X, e.Y), 4);
if (subItem != null)
{
string tmp = subItem.Text;
}*/
System.Windows.Forms.ListViewItem
item = this.listFileHistory.GetItemAt(e.X, e.Y);
int aaaa = 0;
}
clicked by the mouse.Inside mouse_down method, I use
GetItemAt method but it always return me null value, here
is my sample code:
private void listView1_MouseDown(object sender,
MouseEventArgs e)
{
ListViewSubItem subItem =
this.GetListViewSubItem
(this.listFileHistory, new Point(e.X, e.Y), 4);
if (subItem != null)
{
string tmp = subItem.Text;
}*/
System.Windows.Forms.ListViewItem
item = this.listFileHistory.GetItemAt(e.X, e.Y);
int aaaa = 0;
}