Solved

Undo ?

Posted on 1998-05-27
1
313 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
Comment Utility
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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

762 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now