Checkedlistbox problem #3

and 3rd part of my problem is this :

I would like to connect my CheckelListBOX1 with CheckBox1  ( I will have 3 CLBOXES and with every of them  will be connected with one Checkbox ) so that only that list box which Checkbox is checked is printed out.(of course if all 3 are checked --then all 3 CLBoxes are printed out.)

Who is Participating?
newbie22Connect With a Mentor Commented:
I saw answer on question number 1 and I have connected it with Combobox1 it should work.
try somethning like this

Private Sub PrintDocument1_PrintPage(ByVal sender As System.Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles PrintDocument1.PrintPage
        Dim ii As Integer
        If CheckBox1.Checked Then
            Dim fnt As New Font("Arial", 5, FontStyle.Regular)
            For ii = 0 To CheckedListBox1.CheckedItems.Count - 1
                e.Graphics.DrawString(CheckedListBox1.CheckedItems.Item(ii), fnt, Brushes.Black, 1, 60 + ii * 10)
            Exit Sub
        End If

    End Sub
Bob LearnedCommented:
Is this a continuation from another question?  If so, then do you have a URL for the previous questions.  Otherwise, this is a confusing description.

not combo but checkbox1 --- sorry  :)
All Courses

From novice to tech pro — start learning today.