Results 1 to 3 of 3

Thread: [RESOLVED] Question on manipulating controls

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2002
    Location
    midewest u.s.
    Posts
    275

    Resolved [RESOLVED] Question on manipulating controls

    I will be using n amount of radiobuttons in a form. When a radiobutton is checkekd, I want to display a panel with different controls on it. I am using 1 event handler for each of the radiobuttons. I put the panel name (of panel I want to display) in the "tag" property of the radiobutton.

    The question I have is:
    How would I do something along the lines of
    Code:
    (((Panel)(RadioButton)sender).Tag).Visible = true;
    I know this won't work, because Tag is a string of the control name and not the actual control itself. If this possible though without looping through each panel to find out if tag matches the panels name to get the control?

    Thanks
    Last edited by Tool; Dec 6th, 2006 at 09:14 PM. Reason: Resloved. (Thanks jmcilhinney)

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