How to check the ItemClick event for the ListView in VB.NET?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi

I have used ListView of VB6 in one of my projects. Now as I am upgrading the project I want to chanhe the ListView to VB.NET. The only problem I face is that the ItemClick event doesn't exist in VB.NET and I face problem in that.

Please help me to get round this problem and how can I detect a single click on an item without using CheckBoxes in VB.NET?

Thankx
 
The event is now ItemActivate


--
____________________
Klaus H. Probst, MVP
http://www.vbbox.com/

Shalin said:
Hi,

I have used ListView of VB6 in one of my projects. Now as I am
upgrading the project I want to chanhe the ListView to VB.NET. The only
problem I face is that the ItemClick event doesn't exist in VB.NET and I
face problem in that.
Please help me to get round this problem and how can I detect a single
click on an item without using CheckBoxes in VB.NET??
 
The ItemActivate event doesn't fire on single click it takes two clicks and same as DoubleClick event

So tell me any other option

Thankx
 
That depends on the Activation property. If you set it to
ItemActivation.OneClick then the event works the way you expect it to.
 
Back
Top