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