menu
-
Member
txteditor
so i'm trying to make a txteditor allthought i've come into a problem
this is the code i use for copy,cut,paste
Select Case Index
Case 0
Clipboard.Clear
Clipboard.SetText txtBlad.Text
txtBlad.SelText = ""
Case 1
Clipboard.Clear
Clipboard.SetText txtBlad.SelText
Case 2
txtBlad.SelText = Clipboard.GetText
End Select
problem is when i use shortcut for paste (ctrl+v) it pastes the same thing twice
if i write
"hi" then select and press ctrl+c it copies it
then i remove it and press ctrl+v i get:
"hi
hi
"
-
Ctrl+c/v are system-wide copy paste on windows, so on ctrl+v not only does your program add the text, but so does windows.