Help with Radiobutton

Discussion in 'Questions (Windows Mobile)' started by TARQ, Apr 8, 2008.

  1. TARQ

    TARQ Member Licensed User


    I am making an application where i use panels as pages on the form.

    Now i want to have 3 groups of 2 radiobuttons that react as pairs.

    so rb1 and rb2 are linked
    rb3 and rb4 are linked
    and rb5 and rb6 are linked.

    As i already use panels as pages, and i can't make a panel a parent to a panel, how do i solve this......
  2. LineCutter

    LineCutter Active Member Licensed User

    Instant idea would be to use

    Radiobutton2.checked=false in sub Radiobutton1_click
  3. specci48

    specci48 Well-Known Member Licensed User

    Is this a must :confused: or could you use a TabControl (or even different Forms) instead?
  4. specci48

    specci48 Well-Known Member Licensed User

    OK, warming up my brain :signOops: I remembered that I got through this problem some (longer) time ago.
    The fact is: You can't add a panel to a panel directly :(
    The trick is: Change the parent of the sub-panels to the main panel at the beginning of the application using the FormLib :)

    Now the sub panels belong to the parent panels and e.g. are un-/visible if you hide/show the main panel (see attachment).

  5. TARQ

    TARQ Member Licensed User

    Thanks to both LineCutter & specci48, both solutions work.

    The solution from LineCutter is so simple that i don't know why i didn't think of it myself.. :sign0161: :sign0104: