473,394 Members | 1,702 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

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

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
Jul 21 '05 #1
3 12348
The event is now ItemActivate
--
____________________
Klaus H. Probst, MVP
http://www.vbbox.com/

"Shalin" <an*******@discussions.microsoft.com> wrote in message
news:38**********************************@microsof t.com...
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

Jul 21 '05 #2
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
Jul 21 '05 #3
That depends on the Activation property. If you set it to
ItemActivation.OneClick then the event works the way you expect it to.
--
____________________
Klaus H. Probst, MVP
http://www.vbbox.com/

"Shalin" <an*******@discussions.microsoft.com> wrote in message
news:BB**********************************@microsof t.com...
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

Jul 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Maarten | last post by:
how do i check an item in a listview at runtime (not by cklicking on it with mouse) for example i have a button, and when i press it, al items in the list must be checked. kind regards Maarten
4
by: Bill2k | last post by:
Could someone please give me an example of using the addhandler statement with the listview item click event. Also, if I could get an example of what the eventhandler would look like. Thanks in...
3
by: Shalin | last post by:
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...
14
by: Brett Romero | last post by:
I'm using a DataGrid and have assigned this.DataSourceChanged += new EventHandler( DataGrid_DataSourceChanged ); This works fine but there is one case where it doesn't. How can I check if...
1
by: Sim | last post by:
Hello NG, I try to use drag and drop function between two list views. For this I found following code: ...
0
by: fatricks | last post by:
Hi, I am new to VB.Net, but I was using VB6 for long time, my problem is I want to check whether user has clicked on any empty row or row with data in listview, I had tried ItemActivate event but...
0
by: dotnet | last post by:
I am needing to build an array of items that were unchecked from a checkboxlist. I know that in System.Windows.Forms there is an ItemCheckEventArgs Class to determine the state of an item in a...
5
by: Bart Steur | last post by:
Hi, What's the best way to programmaticly select (click) another listview Item after removing the selected/focused one. using VB2005 Express. Thanks Bart
0
by: atishrg | last post by:
Hi Guys, I need some help from you, I am creating vb.net application which uses a outlook addin, I am checking exchange server connection with outlook, if this connection is established then mail...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.