Hi,
I have two checkboxes : Chkcities(0) and Chkcities(1) . I want that when user checks one box by single click other box should be unchecked and vice versa.
I have used below code for this :
Private Sub Chkcities_Click (Index As Integer)
If Index = 0 Then
Chkcities(1).va lue = vbUnchecked
End If
If Index = 1 Then
Chkcities(0).va lue = vbUnchecked
End If
End Sub
I am able to solve my purpose but problem is that; now user need to double click on boxes to check or uncheck them. Is there any way in VB6 by which I can make it driven by single click.
Thanks
Santosh
I have two checkboxes : Chkcities(0) and Chkcities(1) . I want that when user checks one box by single click other box should be unchecked and vice versa.
I have used below code for this :
Private Sub Chkcities_Click (Index As Integer)
If Index = 0 Then
Chkcities(1).va lue = vbUnchecked
End If
If Index = 1 Then
Chkcities(0).va lue = vbUnchecked
End If
End Sub
I am able to solve my purpose but problem is that; now user need to double click on boxes to check or uncheck them. Is there any way in VB6 by which I can make it driven by single click.
Thanks
Santosh
Comment