473,761 Members | 1,784 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ListView.ItemCh eck event

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

Boris
Nov 15 '05 #1
3 5388
Hi Boris,
I wonder when CheckedListView ItemCollection is updated? Before ItemCheck
event? After the event? How to force CheckedListView ItemCollection 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 CheckedListView ItemCollection 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*******@taxu ssi.no.com.spam .pl> wrote in message
news:c1******** **@nemesis.news .tpi.pl...
Hi Boris,
I wonder when CheckedListView ItemCollection is updated? Before ItemCheck
event? After the event? How to force CheckedListView ItemCollection 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 CheckedListView ItemCollection 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
410
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 event that has occurred because of a mouse click on a Checkbox, and one that has occurred because the .Checked property of an item has been changed programatically? More details if needed, but if you can answer the above, you'll have solved the...
2
3011
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 System.Windows.Forms.ListView. Among other features, it enables the checkboxes and overrides the OnItemCheck() method. I have placed this ListView on a form and use form.ShowDialog() to display it whenever the user presses a certain button. If the user...
4
5398
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 double-clicked. Is this possible? Thanks! Bright
3
3885
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 ListView in its Click, DoubleClick, and KeyPress events using the sub below .. However, the ListView can potentially hold hundreds of items, so this would be quite slow.
0
1228
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 newvalue become currentvalue after the event? I'm worring about this because 'listview1.CheckedItems.Count()' didn't change after I changed listview1's check state' Thank you
2
6637
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 item is "processed". When the item becomes processed, i set the listviewitem.checked property to true. To prevent the user from changing the state of the box manually, i use the itemcheck event and set:
2
1317
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 the listview, but now the method does not work when the checkbox is clicked. In trying to fix this problem, it would seem that when I click on the checkbox it calls the itemcheck event. In the itemcheck event I check to see if the state of the...
3
2320
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 indexid = ITEM_IN_ROW_WHOSE_CHECK_JUST_CHANGED.Text;
1
5096
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 simple program that illustrates the exception is below: using System; using System.Windows.Forms; namespace WindowsApplication1
0
9377
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9811
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8814
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7358
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6640
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5266
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5405
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3913
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3509
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.