Solved

Undo ?

Posted on 1998-05-27
1
334 Views
Last Modified: 2010-05-03
Hi,
I know how to do copy/cut/paste.
How do you undo text editing in VB5?
0
Comment
Question by:GeorgeVT
1 Comment
 
LVL 9

Accepted Solution

by:
Dalin earned 50 total points
ID: 1461783
Try:

Const EM_UNDO = &HC7

Private Declare Fuction SendMessage lib "USER32" Alias "SendMessageA" (ByVal hwnd As Long, byVal wMsg As Long,  byVal wParam as Long, lParam as Long) as Long

Private sub Undo_Click()
  SendMessage Text1.hwnd, EM_UNDO, 0, 0
End Sub
0

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question