This project is read-only.

How to get undo/redo/selectall working

Topics: Developer Forum, User Forum
Jul 3, 2014 at 7:23 PM
I cant seem to figure out how to implement select all, clear all, and undo or redo? Any help? Thanks.
Sep 20, 2014 at 6:12 PM
I was looking for help on on selectall and came across this. But figured it out myself. Here you go -

Assuming that the control name for scintilla you created is scintilla1

Undo
If scintilla1.UndRedo.CanUndo Then
scintilla1.UndoRedo.Undo()
End If

Redo

If scintilla1.UndRedo.CanRedo Then
scintilla1.UndoRedo.Redo()
End If

Cut

If scintilla1.Clipboard.CanCut Then
scrintilla1.Clipboard.Cut()
End If

Copy

If scintilla1.Clipboard.Copy Then
scintilla1.Clipboard.Copy()
End If

Paste

If scintilla1.Clipboard.CanPaste Then
scintilla1.Clipboard.Paste()
End If

SelectAll

scintilla1.Selection.SelectAll()