Toggle buttons

  • Thread starter Thread starter John
  • Start date Start date
J

John

Hi

How can I make some of the buttons on BindingNavigator toggle i.e. when one
button is clicked others unclick automatically?

Thanks

Regards
 
Hi,

Set the button autocheck to true. In the click event for the
button manually uncheck the other buttons. Here is an example of how I did
it in one of my projects. Make sure you place code in every buttons click
event.

Private Sub tsDatagrid_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles tsDatagrid.Click
If tsDatagrid.Checked = True Then
tsAll.Checked = False
tsFAQ.Checked = False
tsVB.Checked = False
tsAN.Checked = False
lstTitles.SelectedIndex = 0
DisplayData()
End If
End Sub

Ken
 

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

Back
Top