Re: Radio Button Question

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Larry Serflaten (serflaten_at_usinternet.com)
Date: 04/04/04


Date: Sun, 4 Apr 2004 08:12:46 -0500


"Matt" <mattloude@hotmail.com> wrote
> There are 2 radio buttons in the form, when the user switch from option1 to
> option2, it will prompt a confirm dialog. I have 2 questions:
>
> 1) Here's the code I wrote, but the problem is when the user select no or
> cancel, it will trigger the click event again, and prompt the message box.
> Thats not what I want.

Just to re-enforce what Jim said, you are going a bit over the top when
you prompt the user if they really want to make the change. If they did
not want to make the change, then why is the form showing, or why did
they change it, at all? As Jim said, if it is important that you confirm the
change, then it should be done in the Apply, or OK button.

> 2) Am I supposed to group option1 and option2 together, since they are radio
> buttons?

Putting them on the same container effectively groups them. (EX. putting them
on the same form) All option buttons on the same container are treated
equally (they all belong to the same group). If you want to use separate
groups in the same form, then you have to divide them up by putting the
groups on different containers (Frames, Pictureboxes, etc).

LFS

LFS



Relevant Pages

  • Re: Radio Button Question
    ... > cancel, it will trigger the click event again, and prompt the message box. ... As Jim said, if it is important that you confirm the ... Putting them on the same container effectively groups them. ... LFS ...
    (microsoft.public.vb.controls)
  • Re: Radio Button Question
    ... > cancel, it will trigger the click event again, and prompt the message box. ... As Jim said, if it is important that you confirm the ... Putting them on the same container effectively groups them. ... LFS ...
    (microsoft.public.vb.general.discussion)
  • Re: prevent div wrapping
    ... Jim, perhaps you didn't read the sentence I wrote "My ... The container sizes do not have to change; ... wouldn't "columns that run outside the width of a container div" ... The problem with adding the "overflow: hidden" code is that the user ...
    (comp.infosystems.www.authoring.stylesheets)
  • Re: Freeview probs.
    ... impulse interference", with many articles, precisely because of this paticular problem! ... pointing out that DAB uses COFDM and doesn't suffer II problems, despite its use of lower frequencies, where you'd expect the impulse spectral density to be 9-10 dB greater than at UHF. ... As Jim said, don't confuse the container and the contained. ...
    (uk.tech.digital-tv)
  • How to avoid Save dialog in Active document
    ... I have create a both container and server's Active document,it works well when open a document in IE, ... I don't want to prompt the dialog, ... Best regards. ...
    (microsoft.public.dotnet.languages.vc)