Advertisement

05.26.2008 at 11:25AM PDT, ID: 23433115
[x]
Attachment Details

CheckedListBox - Need to Loop Selected Items...

Asked by jahooper in Visual Studio .NET 2003

Tags: Microsoft, VB.NET, 2003, Winforms

After viewing dozens of posts on this and trying various solutions, I'm still not getting it...

Here's my code to add items to my CheckedListBox, which works fine:
*************************************************************************
Dim dsDistrict As New DataSet

        strSQL = "SELECT CSS_CD, CSS_DESC || ' (' || CSS_CD || ')' AS ADESC " _
               & "FROM CSSTBL " _
               & "WHERE (CSS_TBL = '5030') " _
               & "ORDER BY ADESC"
        dsDistrict = Utility.GetSQLLiteData2("csstbl.db", strSQL)

        Me.clbDistrict.DataSource = dsDistrict.Tables(0)
        Me.clbDistrict.ValueMember = "CSS_CD"
        Me.clbDistrict.DisplayMember = "ADESC"
*************************************************************************

When I check or uncheck any item(s) in the CheckedListBox, I need to loop through all of the items and react to any which are currently selected...

Any assistance appreciated...Start Free Trial
[+][-]05.27.2008 at 12:23AM PDT, ID: 21649972

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Visual Studio .NET 2003
Tags: Microsoft, VB.NET, 2003, Winforms
Sign Up Now!
Solution Provided By: webtubbs
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628