473,387 Members | 1,582 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,387 software developers and data experts.

ListView.ItemCheck event

I wonder when CheckedListViewItemCollection is updated? Before ItemCheck
event? After the event? How to force CheckedListViewItemCollection to show
updated items list after check in the ItemCheck event?

Boris
Nov 15 '05 #1
3 5372
Hi Boris,
I wonder when CheckedListViewItemCollection is updated? Before ItemCheck
event? After the event? How to force CheckedListViewItemCollection to show
updated items list after check in the ItemCheck event?


I have similar problem some time ago.
As i remember, i have exchanged *ItemCheck* event handling with
*MouseUp* event handling.
I hope it is your solution.

Regards

Marcin
Nov 15 '05 #2
Good idea, Marcin.

Thank You, but I prefer MS solution:

the event has argument with info about checked item. So one can do work with
checked items from CheckedListViewItemCollection and than treat item which
index is in event arguments. Tricky? But it is a way of Microsoft. See in:

http://msdn.microsoft.com/library/de...itemstopic.asp

Boris.

"Marcin Grzębski" <mg*******@taxussi.no.com.spam.pl> wrote in message
news:c1**********@nemesis.news.tpi.pl...
Hi Boris,
I wonder when CheckedListViewItemCollection is updated? Before ItemCheck
event? After the event? How to force CheckedListViewItemCollection to show updated items list after check in the ItemCheck event?


I have similar problem some time ago.
As i remember, i have exchanged *ItemCheck* event handling with
*MouseUp* event handling.
I hope it is your solution.

Regards

Marcin

Nov 15 '05 #3
> Thank You, but I prefer MS solution:

the event has argument with info about checked item. So one can do work with
checked items from CheckedListViewItemCollection and than treat item which
index is in event arguments. Tricky? But it is a way of Microsoft. See in:

http://msdn.microsoft.com/library/de...itemstopic.asp


This way looks good to me, too!

Marcin
Nov 15 '05 #4

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

Similar topics

2
by: Mike Ruane-Torr | last post by:
I have a design problem involving a ListView control on a Windows form. What it boils down to is the following question: Q: Is there a way to tell the difference between a ListView.ItemCheck...
2
by: Aaron Queenan | last post by:
Is there any way to know whether the OnItemCheck is being called in response to a user action (mouse or keyboard) as opposed to the form loading? I have a class which derives from...
4
by: Bright Sun | last post by:
Hi, I have a ListView that is shown in Details mode, and the Checkboxes property is set to true. My problem is that I dont want the checkboxes being activated when items in the ListView are...
3
by: | last post by:
Hello, I have a ListView control in Details view. When an item is un-checked, I want to change the ForeColor. The only way I have found to do this is to loop through all the items of the...
0
by: Peter | last post by:
Hi,everyone, I'm using a listview control to deal with data. The ItemCheckEventArgs have 2 properties:CurrentValue and NewValue in listview.itemcheck event. Can anybody tell me when does the...
2
by: ian.watkins | last post by:
I'm having a problem with the listview itemcheck event since upgrading a smart device app from VS2003 VB.NET CF1.0 to VS2005 VB.NET CF2.0. I'm using the listview item checkbox to indicate if the...
2
by: samoore33 | last post by:
I am working with a program that utilized the checkbox property of a listview. When a user clicked on the checkbox, it was suppose to calculate and total some prices. I did not make any changes to...
3
by: sherifffruitfly | last post by:
Hi, Here's a skeleton-handler of what I'm trying to do: private void editBbListView_ItemCheck(object sender, System.Windows.Forms.ItemCheckEventArgs e) { string qEnabled = ""; string...
1
by: dvestal | last post by:
I have a ListView with checkboxes. I want to remove items when the checkboxes are unchecked, but to do so yields an ArgumentOutOfRangeException. Is there an easy way to get around this? A...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.