G
Guest
Hi,
I have a button, which I disable after it has been clicked. it gets enabled
when all processing (code that gets executed when the button is clicked) is
done.
Looks like this:
Private Sub btnLabel_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnLabel.Click
'** Code
End sub
However, when the disabled button is clicked, afterwards those clicks are
done.
I tried removing the handler for the click event like so:
RemoveHandler bnLabel.Click, AddressOf btnLabel.Click
This doesn't seem to work either.
With BlockInput I can block evry input, but this isn't quite the behavior
I'm looking for. The user can't do anthing anymore, and that's no good.
Anyone having an idea.
Thanks already.
Bjorn.
I have a button, which I disable after it has been clicked. it gets enabled
when all processing (code that gets executed when the button is clicked) is
done.
Looks like this:
Private Sub btnLabel_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnLabel.Click
'** Code
End sub
However, when the disabled button is clicked, afterwards those clicks are
done.
I tried removing the handler for the click event like so:
RemoveHandler bnLabel.Click, AddressOf btnLabel.Click
This doesn't seem to work either.
With BlockInput I can block evry input, but this isn't quite the behavior
I'm looking for. The user can't do anthing anymore, and that's no good.
Anyone having an idea.
Thanks already.
Bjorn.