OptionButton

U

Ulf Nilsson

Hi,
I have a TabStrip with some OptionButtons and used the following to determ
which OptionButton the user has clicked and click on a CommandButton:

For Each cTemp In frmAImallar.Controls
If LCase(Left(cTemp.Name, 12)) = LCase("OptionButton") Then
If cTemp.Value = True Then
gsValdMall = cTemp.Caption
gfTest = True
Exit For
End If
End If
Next

If a user click on a OptionButton, I want a short description to show in a
label. Different descriptions depending on which OptionButton is clicked. How
is this done?

/ Ulf
 
U

Ulf Nilsson

Since I have 20 OptionButtons, I thought there would be an easier way than
have 20 click events. Maybe I was wrong?

/ Ulf
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top