Okai I need help in my visual basic assignment. So,
There are 5 checkboxes and what I want is that, when I click on a checkbox I want it to be listed automatically in a label or something, in any order. Get it?? PLEASE HELP Thank you!
![]() |
Okai I need help in my visual basic assignment. So,
There are 5 checkboxes and what I want is that, when I click on a checkbox I want it to be listed automatically in a label or something, in any order. Get it?? PLEASE HELP Thank you!
Look up how to use the Checkbox in the help file. You can use the Click event, for example:
Private Sub Check1_Click()
Dim TextToDisplay As String
If Check1.Value = 1 Then TextToDisplay = "Check 1" Else TextToDisplay = ""
Label1.Caption = TextToDisplay
End Sub
Hope that guides you.
Look up how to use the Checkbox in the help file. You can use the Click event, for example:
Private Sub Check1_Click()
Dim TextToDisplay As String
If Check1.Value = 1 Then TextToDisplay = "Check 1" Else TextToDisplay = ""
Label1.Caption = TextToDisplay
End Sub
Hope that guides you.
It doesn't work.
What I want it to do is that, when a checkbox1,2,3,4... is checked then I want labels to show what I have checked it, in the order that I checked it.
Please suggest a different one.
Would be nice to see an example of the output.
Try this:
Label1.Caption = Label1.Caption & TextToDisplay & " "
All times are GMT -7. The time now is 03:34 AM. |