Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    May 2008
    Posts
    56
    Thanks
    9
    Thanked 1 Time in 1 Post

    How to UNDO last in VB.Net

    I am designing a game for a project using VB.Net 2005. I am absolutely new to this, learning as I go. What I am trying to do is create, if necessary, a sub that when called will undo the last button click made by user. Example… if user clicks button1 to change to B and checks with check button, check button determines B is incorrect and displays message, how do I return button1 to its former text?

    Thank you for looking
    Last edited by radamsiii; 07-18-2008 at 05:18 AM.
    Dedicate some time to Educate your mind

  • #2
    New Coder
    Join Date
    Jul 2006
    Posts
    38
    Thanks
    0
    Thanked 1 Time in 1 Post
    Quote Originally Posted by radamsiii View Post
    I am designing a game for a project using VB.Net 2005. I am absolutely new to this, learning as I go. What I am trying to do is create, if necessary, a sub that when called will undo the last button click made by user. Example… if user clicks button1 to change to B and checks with check button, check button determines B is incorrect and displays message, how do I return button1 to its former text?
    Thank you for looking
    Please post all of your code in here so i can understand what you already have.
    Then I'll be able to help.

    -Dual

  • #3
    Super Moderator sage45's Avatar
    Join Date
    May 2002
    Posts
    1,059
    Thanks
    0
    Thanked 13 Times in 13 Posts
    Simple really...

    You would have to specify a variable to be a temporary holder of the old variable data. This ofcourse would mean that the temporary variable would be of the same type as that of the origin.

    -saige-
    HTML & CSS Forum Moderator

    "If you don't know what you think you know, then what do you know."
    R.I.P. Derrick Thomas #58
    1/1/1967 - 2/8/2000


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •