Group checkbox

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • axapta

    Group checkbox

    Hi group,
    How can I group a couple of check boxes on my form so that only ONE can be
    checked an anytime?
    I've tried placing them onto a panel but I can still check them both.

    Using VB.NET
    Regards

  • Rob Blackmore

    #2
    Re: Group checkbox

    You should use radio buttons for this type of behaviour as users will expect
    to be able to check none, one or all checkboxes?

    Otherwise, the only method I can think of is to put code in each
    CheckedChanged event to uncheck all of the other checkboxes.

    Kind regards

    Rob

    "axapta" <jas.jackie@gma il.comwrote in message
    news:78BFEAC1-EC42-49DA-8548-6A18B1B24FA6@mi crosoft.com...
    Hi group,
    How can I group a couple of check boxes on my form so that only ONE can be
    checked an anytime?
    I've tried placing them onto a panel but I can still check them both.
    >
    Using VB.NET
    Regards

    Comment

    • axapta

      #3
      Re: Group checkbox

      Thanks Rob.
      And place the radio buttons on a panel? Sorry I'm not at work at the moment
      and can't envisage how using radio buttons will work - surely they are
      placed on the form one at a time like a check box?

      "Rob Blackmore" <rob@robblackmo re.comwrote in message
      news:81C85CB3-1D7E-4D08-BDE3-DE2F0F714EE4@mi crosoft.com...
      You should use radio buttons for this type of behaviour as users will
      expect to be able to check none, one or all checkboxes?
      >
      Otherwise, the only method I can think of is to put code in each
      CheckedChanged event to uncheck all of the other checkboxes.
      >
      Kind regards
      >
      Rob
      >
      "axapta" <jas.jackie@gma il.comwrote in message
      news:78BFEAC1-EC42-49DA-8548-6A18B1B24FA6@mi crosoft.com...
      >Hi group,
      >How can I group a couple of check boxes on my form so that only ONE can
      >be checked an anytime?
      >I've tried placing them onto a panel but I can still check them both.
      >>
      >Using VB.NET
      >Regards
      >

      Comment

      • Rob Blackmore

        #4
        Re: Group checkbox

        Hi,

        Yes - put each "set" of radio buttons in a different panel. Then you can
        only select one from each set as the panel being the container control is
        what determines that they are grouped together.

        Kind regards

        Rob


        "axapta" <jas.jackie@gma il.comwrote in message
        news:165B917F-A189-47D4-8A2E-0578FFAF2B85@mi crosoft.com...
        Thanks Rob.
        And place the radio buttons on a panel? Sorry I'm not at work at the
        moment and can't envisage how using radio buttons will work - surely they
        are placed on the form one at a time like a check box?
        >
        "Rob Blackmore" <rob@robblackmo re.comwrote in message
        news:81C85CB3-1D7E-4D08-BDE3-DE2F0F714EE4@mi crosoft.com...
        >You should use radio buttons for this type of behaviour as users will
        >expect to be able to check none, one or all checkboxes?
        >>
        >Otherwise, the only method I can think of is to put code in each
        >CheckedChang ed event to uncheck all of the other checkboxes.
        >>
        >Kind regards
        >>
        >Rob
        >>
        >"axapta" <jas.jackie@gma il.comwrote in message
        >news:78BFEAC 1-EC42-49DA-8548-6A18B1B24FA6@mi crosoft.com...
        >>Hi group,
        >>How can I group a couple of check boxes on my form so that only ONE can
        >>be checked an anytime?
        >>I've tried placing them onto a panel but I can still check them both.
        >>>
        >>Using VB.NET
        >>Regards
        >>
        >

        Comment

        • axapta

          #5
          Re: Group checkbox

          Thanks Rob, I'll give that a go.
          "Rob Blackmore" <rob@robblackmo re.comwrote in message
          news:F5C42CF3-C093-471C-81B3-FDF3722CCEC9@mi crosoft.com...
          Hi,
          >
          Yes - put each "set" of radio buttons in a different panel. Then you can
          only select one from each set as the panel being the container control is
          what determines that they are grouped together.
          >
          Kind regards
          >
          Rob
          >
          >
          "axapta" <jas.jackie@gma il.comwrote in message
          news:165B917F-A189-47D4-8A2E-0578FFAF2B85@mi crosoft.com...
          >Thanks Rob.
          >And place the radio buttons on a panel? Sorry I'm not at work at the
          >moment and can't envisage how using radio buttons will work - surely they
          >are placed on the form one at a time like a check box?
          >>
          >"Rob Blackmore" <rob@robblackmo re.comwrote in message
          >news:81C85CB 3-1D7E-4D08-BDE3-DE2F0F714EE4@mi crosoft.com...
          >>You should use radio buttons for this type of behaviour as users will
          >>expect to be able to check none, one or all checkboxes?
          >>>
          >>Otherwise, the only method I can think of is to put code in each
          >>CheckedChange d event to uncheck all of the other checkboxes.
          >>>
          >>Kind regards
          >>>
          >>Rob
          >>>
          >>"axapta" <jas.jackie@gma il.comwrote in message
          >>news:78BFEA C1-EC42-49DA-8548-6A18B1B24FA6@mi crosoft.com...
          >>>Hi group,
          >>>How can I group a couple of check boxes on my form so that only ONE can
          >>>be checked an anytime?
          >>>I've tried placing them onto a panel but I can still check them both.
          >>>>
          >>>Using VB.NET
          >>>Regards
          >>>
          >>
          >

          Comment

          Working...