txteditor menu

Shout-Out

User Tag List

Thread: txteditor

Results 1 to 2 of 2
  1. #1
    lolicon123's Avatar Member
    Reputation
    1
    Join Date
    Oct 2008
    Posts
    31
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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
    "

    txteditor
  2. #2
    ReidE96's Avatar Archer Authenticator enabled
    Reputation
    470
    Join Date
    Dec 2006
    Posts
    1,625
    Thanks G/R
    1/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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.

All times are GMT -5. The time now is 04:11 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search