Skip to content

sebthom.de

Menu
  • Home
  • About me
  • Imprint
    • Datenschutzerklärung
  • Guestbook
Menu

Visual Basic – Multiple Undos Class v2.04

Posted on Sunday March 9th, 2003Sunday December 25th, 2022 by sebthom

I tried a lot of differnet multi undo solutions, but every had at least one draw back. So I had to develop my on solution.

If you want to use it, you don’t have to clutter your code by pasting in lots of undo-related subs, functions and variables. Everything comes within two small class files.


All you have to do is to create one class instance and set the richtextbox/textbox you want to enhance with multiple undos. It will look something like this:

	Dim WithEvents Undo as clsUndo
	Set Undo = New clsUndo
	Undo.AssignToRichTextBox Controls, RichTextBox1

That’s basically all you have to do.

MultiUndo-ScreenShot

Source Code @ github.com

5 thoughts on “Visual Basic – Multiple Undos Class v2.04”

  1. Annibale says:
    Friday February 17th, 2023 at 05:17 PM

    Ho adattato la versione “v1-03-updated-05-01-2002__1-34094” a Vb.Net 4 e funziona egregiamente. Ottimo lavoro. Grazie

    I adapted the version “v1-03-updated-05-01-2002__1-34094” to Vb.Net 4 and it works great. Good job. Thank you

  2. Annibale says:
    Thursday February 16th, 2023 at 04:39 PM

    Su github.com non รจ presente la versione 2.04. Grazie per il tuo lavoro.
    Version 2.04 is not present on github.com. Thank’s for your job.

  3. hahjs says:
    Thursday July 5th, 2012 at 11:02 AM

    GOOD!

  4. Sebastian Thomschke says:
    Tuesday November 4th, 2008 at 11:10 PM

    Jack, simply copy the clsUndo.cls and clsUndoElement.cls class files into your VB project. Then create a new Undo instance as described above and assign it to a text box. Next create undo/redo buttons or menu items that call the undo / redo functions of the Undo class.

    Hope that helps,
    Seb

  5. jack212 says:
    Tuesday November 4th, 2008 at 12:58 PM

    what?

    have been looking for undo codes for a long time,
    could you explain more thoroughly how to use this please

Leave a Reply

Your email address will not be published. Required fields are marked *

Categories

  • Blog (1)
  • IT (21)
    • Development (16)
      • Java (7)
      • Jython (4)
      • Visual Basic (5)
    • Linux (3)
    • WebSphere Application Server (1)
    • WebSphere Portal (2)
    • Windows (1)
  • My Freeware (2)
  • My Music (3)

Recent Posts

  • Logging WebSphere API calls in wsadmin scripts
  • [Solved] Windows 7 “Safely Remove Hardware” pop-up menu horrendously slow
  • Bash: Capturing stderr in a variable while still printing to the console.
  • Configuring EMF Teneo with Hibernate, Commons DBCP, Spring Hibernate Transaction Manager, and the OpenSessionInViewFilter
  • Using EMF ECore model objects with Wicket components
  • Installing Tomcat 6 on Debian Squeeze
  • Leveraging PyDev’s auto-completion for indirectly created objects
  • OVal 1.40 released
  • Installing WebSphere Portal in a local network
  • Comparing version numbers in Jython / Python

Blogroll

  • E L S U A
  • elektrofever.de
  • OVal
  • Sweettt.com
  • Twins’ Running Blog

Recent Comments

  • Annibale on Visual Basic – Multiple Undos Class v2.04
  • Annibale on Visual Basic – Multiple Undos Class v2.04
  • koliko2k3 on Guestbook
  • hdkid on MyPad v1.1.6 – a PHP Editor
  • Luis Diego Villarreal on Excel – VBA Timer Example v1.0.1

Archives

  • June 2014
  • May 2012
  • January 2011
  • October 2010
  • September 2010
  • March 2010
  • February 2010
  • September 2009
  • July 2009
  • March 2009
  • February 2009
  • November 2008
  • September 2008
  • May 2008
  • September 2007
  • July 2007
  • July 2004
  • March 2003
  • August 2002
  • April 2002
  • January 2002
  • Deutsch (de)Deutsch
  • English (en)English
© 2025 sebthom.de | Powered by Minimalist Blog WordPress Theme