Microsoft
Software
Hardware
Network
Question : Get ListViewItem Checked state by Index in VB .NET
I've been trying to commit an action based on the Checked Index of that item. I've tried a bunch of different ways and I've come up with nothing so far.
Couple of things first:
I cannot use the ListViews events. I must be able to determine the Checked state from a button's event.
Again, I need to check a specific index (0-4) and then commit an action based on that. The following is an example that I've tried. More importantly, it will give you a better idea of what I need:
If ListView1.CheckedIndices(0
) = True Then
'Checked
Else
'Not checked
End If
Answer : Get ListViewItem Checked state by Index in VB .NET
Once you've done that, you can then determine if your specific items as checked....
If ListView1.CheckedIndices.C
ount > 0 Then
If ListView1.Items(0).Checked
Then
'your code
End If
Else
'there are no items checked
End If
Wayne
Random Solutions
MS Word 2007 :: Tables :: Prevent Page Break
Programmatically create IIS host header using VBScript / ASP?
SQL Server 2005 Error, Ex_handle_except encountered exception C0000005 - Server terminating
Outlook xp exchange 2010
How do I send email messages via Access using addresses from a table? The message will be different for each receiver.
What would cause the Report_NoData Sub routine to run twice? Access 2003
eePC SSD space issue
MS DYnamics GP Change Fiscal Year
Using application.international (what library needs referenced)
WIN32_FIND_DATA Size problem