Hi,
Using button, How to undo the last click event?
monching
3
Newbie Poster
Recommended Answers
Jump to Postuse a boolean variable. In the handler code, have 2 sets of code, run a set based on the condition of the boolean.
Jump to PostThat question is really generic, so i'll try to answer in a generic way.
As you can expect, the answer is 'That depends on what the click does'
If the button click adds one to a counter, the undo can subtract one from the same counter. In this case, once …
Jump to Postin which handler?
The button with the click event.
Jump to PostProbably you have seen that there are some applications that are able to 'undo' the last action. There is no magic behind.
The programmer of those applications had to define how and what an undo button does, like any other button.
Now, on your application, you just need to write …
Jump to PostYou didn't follow the code I gave you.
When you set the handles option on an event handler it will only handle the one object, unless you include other objects in the statement,Handles Button1.Click, Button2.Click
, etc.. When you have alot of objects it's easier to add the handler to …
All 21 Replies
tinstaafl
1,176
Posting Maven
monching
3
Newbie Poster
lolafuertes
145
Master Poster
TnTinMN
commented:
nice description
+6
adam_k
commented:
Agree
+8
tinstaafl
1,176
Posting Maven
monching
3
Newbie Poster
monching
3
Newbie Poster
lolafuertes
145
Master Poster
monching
3
Newbie Poster
Begginnerdev
256
Junior Poster
lolafuertes
145
Master Poster
monching
3
Newbie Poster
tinstaafl
1,176
Posting Maven
monching
3
Newbie Poster
tinstaafl
1,176
Posting Maven
lolafuertes
145
Master Poster
monching
3
Newbie Poster
tinstaafl
1,176
Posting Maven
monching
3
Newbie Poster
tinstaafl
1,176
Posting Maven
monching
3
Newbie Poster
tinstaafl
1,176
Posting Maven
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.