-
Mar 24th, 2004, 02:34 PM
#1
Thread Starter
Frenzied Member
select case and radio buttons [RESOLVED]
If you have radio buttons and want to determine which is selected using a select case, what do you check for? I tried .checked, true and neither works.
Last edited by Andy; Mar 25th, 2004 at 09:35 PM.
-
Mar 24th, 2004, 06:04 PM
#2
Frenzied Member
You sure about that? I just tried the Checked property and it seems to work fine.
VB Code:
If RadioButton1.Checked Then
MessageBox.Show("RadioButton1 is checked")
End If
-
Mar 24th, 2004, 06:46 PM
#3
PowerPoster
Hi,
You have to be a little more restrictive when you use Select Case.
try
VB Code:
Select Case True
case btn1.checked
code
case btn2.checked
code
etc
Taxes
The more I learn about VB.NET the more I like dBaseIII Plus
The foregoing, whilst believed to be correct, is given without guarantee as to it's accuracy and entirely without recourse. You are required to decide for yourself whether or not it is suitable for your purposes and no liability for loss of any nature can be entertained.
-
Mar 24th, 2004, 09:23 PM
#4
Thread Starter
Frenzied Member
-
Mar 25th, 2004, 04:17 AM
#5
PowerPoster
Hi,
From your first post I thought you had tried
VB Code:
Select Case .checked = true
case btn1
code
case btn2
code
etc
which will not work.
Taxes
The more I learn about VB.NET the more I like dBaseIII Plus
The foregoing, whilst believed to be correct, is given without guarantee as to it's accuracy and entirely without recourse. You are required to decide for yourself whether or not it is suitable for your purposes and no liability for loss of any nature can be entertained.
-
Mar 25th, 2004, 07:50 AM
#6
Thread Starter
Frenzied Member
well, I tried
VB Code:
select case true
yadda yadda
end select
and I tried
they didn't work the first round. lol
they work now. I must have typed in something wrong and didn't catch it.
-
Jan 18th, 2022, 08:36 AM
#7
New Member
Re: select case and radio buttons [RESOLVED]
A newbie here, I needed this same thing and your solution worked great for me. Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|