Re: Radio Button Question
From: Larry Serflaten (serflaten_at_usinternet.com)
Date: 04/04/04
- Next message: Larry Serflaten: "Re: group radio buttons together?"
- Previous message: Randy Birch: "Re: group radio buttons together?"
- In reply to: Matt: "Radio Button Question"
- Next in thread: Don Hanfland: "Re: Radio Button Question"
- Messages sorted by: [ date ] [ thread ]
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
- Next message: Larry Serflaten: "Re: group radio buttons together?"
- Previous message: Randy Birch: "Re: group radio buttons together?"
- In reply to: Matt: "Radio Button Question"
- Next in thread: Don Hanfland: "Re: Radio Button Question"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|