ListView label edit question

  • Thread starter Thread starter Michael C
  • Start date Start date
M

Michael C

In a ListView control with LabelEdit set to true, you have to click and hold
the mouse button longer than I would like to actually edit the label. Is
there a way to make it so that you can click the label once, quickly, and go
into edit mode?

Thanks,
Michael C.
 
Try this

private void listView1_Click(object sender, System.EventArgs e)
{
if(listView1.SelectedItems.Count > 0)
{
listView1.SelectedItems[0].BeginEdit();
}
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top