|
-
Jan 13th, 2011, 03:37 PM
#6
Thread Starter
PowerPoster
Re: Control looping.
 Originally Posted by Bruce Fox
How about ...:
vb Code:
If GrandChildControl.name.Contains("Exclude") Then
Dim cb = Directcast(GrandCHildControl, Elegant.Ui.CheckBox)
If cb.Checked = CheckedState.Checked Then...
End If
End If
Or
vb Code:
If GrandChildControl.name.Contains("Exclude") Then
If Directcast(GrandCHildControl, Elegant.Ui.CheckBox).Checked = CheckedState.Checked Then ...
End If
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.
I had tried that too before posting the thread. This doesnt work because as soon as I check one checkbox for Exclude, the messagebox comes up.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|