Results 1 to 25 of 25

Thread: Control looping.

Threaded View

  1. #5
    INXSIVE Bruce Fox's Avatar
    Join Date
    Sep 2001
    Location
    Melbourne, Australia
    Posts
    7,429

    Re: Control looping.

    How about ...:
    vb Code:
    1. If GrandChildControl.name.Contains("Exclude") Then
    2.  
    3. Dim cb = Directcast(GrandCHildControl, Elegant.Ui.CheckBox)
    4. If cb.Checked = CheckedState.Checked Then...
    5.  
    6. End If
    7.  
    8. End If

    Or
    vb Code:
    1. If GrandChildControl.name.Contains("Exclude") Then
    2.  
    3. If Directcast(GrandCHildControl, Elegant.Ui.CheckBox).Checked = CheckedState.Checked Then ...
    4.  
    5. End If
    6.  
    7. End If


    Syntax may be off as I typed it in NotePad.

    Note, you don't need an index as you already iterating the CheckBox's named Exclude, and in this case there would br four.
    Last edited by Bruce Fox; Jan 13th, 2011 at 03:18 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width