Results 1 to 19 of 19

Thread: Radiobutton Cast [RESOLVED]

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2005
    Posts
    384

    Resolved Radiobutton Cast [RESOLVED]

    Hello!
    I'm trying to loop through all the radiobuttons of a form, and clear their checks

    What I'vo got so far is:
    VB Code:
    1. Dim MPrd1 As Control
    2.                 For Each MPrd1 In Me.Controls
    3.                     If TypeOf MPrd1 Is RadioButton Then
    4.                           [b]MPrd1.Checked = False[/b]
    5.                     End If
    6.                 Next

    But now the compiler says that .Checked (the bolded line) is not a member of System.Windows.Forms.Control.
    What am I doing wrong?
    Last edited by GrimmReaper; Feb 14th, 2006 at 08:51 AM.

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