I think ive seen this question asked before here but cant seem to find it now..so
I have 2 alternate commands attached to a single button, so when pressed once it activates one command then when pressed again the button activates the second command etc. etc.
But on each press im getting both commands (or more) executed each time,
Code im using:
Private Sub Button6_Click(sender As Object, e As EventArgs) Handles Button6.Click
FirstOperation()
SecondOperation()
End Sub
Private Sub FirstOperation()
"my code for command one here"
End Sub
Private Sub SecondOperation()
"my code for command 2here"
End Sub
I would like one click activates 1command then another click activates the second command, then back to command one on the next click.... Basicly im sending a "turn on command then a turn off command" on each button press.
But im getting multiple inputs or command activation's on each button press... Something to do with the rate/speed the code is run, the button the seen as pressed on multiple passes of the code... I think i need some type of "read once then ignore until next press" type of adjustment..
sure there must be a reasonably easy solution..
Cheers
Matt