Function Cut, Copy, Paste, & Undo n VB6 commands in your program? Now you can, check this out:
Cut: (put this in a button)
Clipboard.SetText Text1.SelText
Text1.SelText = ""
Copy: (put this in a button)
Clipboard.SetText Text1.SelText
Paste: (put this in a button)
Text1.SelText = Clipboard.GetText(1)
Undo: (put this in your bas)
Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
Public Const WM_UNDO = &H304
Put this in a button:
Call SendMessage(Text1.hwnd, WM_UNDO, 0&, 0&)
0 comments:
Posting Komentar