msvisual.com Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

radio Button Group

 
Post new topic   Reply to topic    msvisual.com Forum Index -> VB Syntax
Author Message
Timani



Joined: 04 Oct 2007
Posts: 1

PostPosted: Wed Oct 18, 2006 9:34 pm    Post subject: radio Button Group Reply with quote

hi i am using Visual Basic 2005, and i am programming a windows form. I
have a groupBox that contains a number of radio buttons. for ease of
the argument we will say three. the program is meant to calculates taxe
and these three radio buttons represent the tax rate. for example
10%(radBx1), 20%(radBox2), 30%(radBox3), and the user MUST select one.
if they DO NOT there should be a messageBox.Show, and the form will
clear all fields and start again.

now i have tried to use a try catch block, but i couldnt find an
appropriate exception for when none of the radio buttons is checked.

i tried to setup a messageBox.Show by itself if there was no selected
choice(checked = false for all radBoxes), however the program continued
through the rest of the calculation, and showed the error message too.

any ideas?

Archived from group: microsoft>public>vb>syntax
Back to top
View user's profile Send private message
Bob O`Bob



Joined: 04 Oct 2007
Posts: 1456

PostPosted: Wed Oct 18, 2006 9:48 pm    Post subject: Re: radio Button Group Reply with quote

Timani wrote:
> hi i am using Visual Basic 2005, and


....and that is NOT the visual basic this group serves.

Despite Microsoft having dropped it from the name, that is VB.net
dotnet

Look for newsgroups with "dotnet" or "vsnet" in their names.



Bob
--
Back to top
View user's profile Send private message
Bob Butler



Joined: 04 Oct 2007
Posts: 1325

PostPosted: Wed Oct 18, 2006 9:51 pm    Post subject: Re: radio Button Group Reply with quote

"Timani" wrote in message@m7g2000cwm.googlegroups.com
> hi i am using Visual Basic 2005,


--
try asking in a group with "dotnet" in the name; this group is for VB 6.0
and earlier
VB.Net is Not.VB

Back to top
View user's profile Send private message
Display posts from previous:   
Related Topics:
group radio buttons together? If I have several radio buttons in the form, should I group it together? If so, how to do that? Or I should use have one name for each radio button? such as Option1, Option2, etc...

Radio Button Question 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 aga

Script for enumerating users group info I'm looking for some assistance with a script. The script requests a username, then displays the user's group memberships along with each group's I've been searching for a way to include the groups "Notes" (or Info) field in the output.

How to extract the VAB button name? Greetings All, I am trying to write a macro that identifies what button has been activated. Basically, have all the buttons use one macro, and the macro must know the name of the button clicked to know which routine to use. The majority of the code is use

i am trying to Execute some command Bar Button but doesn't w hi there, i am trying to Execute some command Bar Button i can change if there Visible, Enabled and Caption of them but i can't Execute them and i don;t know why is it becuase i am using VB.net and the COM add-in dll uses VB 6?? below is my code in case i
Post new topic   Reply to topic    msvisual.com Forum Index -> VB Syntax All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group