Results 1 to 10 of 10

Thread: Disable RichTextBox own paste code... help!

Hybrid View

  1. #1
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Disable RichTextBox own paste code... help!

    Quote Originally Posted by Trojan
    That is what I ment. that way I can control what format I Paste the text and control other stuff...
    Well, the richtextbox, like the standard textbox, has its own right mouse click popup menu which you can replace with your own.

    You could also clear the clipboard if they pressed Ctrl-V in your textbox so they couldn't use Windows to do the paste.

  2. #2

    Thread Starter
    Hyperactive Member Trojan's Avatar
    Join Date
    Dec 2003
    Location
    Area 51
    Posts
    280

    Re: Disable RichTextBox own paste code... help!

    well...
    If I make a menu Item with shortcut "Ctrl+V" set it does not bypass the paste code of the windows...

    I guess I need to find a solution in API...
    MD5How To Detect Disk In Drive X?Time Tickerchanging the owner of a controlSystray HardCore

    • "Programming is like sex: one mistake and you have to support it for the rest of your life."
    • "A program is a spell cast over a computer, turning input into error messages."
    • "WARNING: Keyboard Not Attached. Press F10 to Continue."
    • "Why doesn't DOS ever say 'EXCELLENT command or filename!'"

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Disable RichTextBox own paste code... help!

    Quote Originally Posted by Trojan
    well...
    If I make a menu Item with shortcut "Ctrl+V" set it does not bypass the paste code of the windows...

    I guess I need to find a solution in API...
    You can capture Ctrl_V in the keydown event of your RTB
    VB Code:
    1. Private Sub RichTextBox1_KeyDown(KeyCode As Integer, Shift As Integer)
    2.  If (Shift And vbCtrlMask) = vbCtrlMask And KeyCode = vbKeyV Then
    3.     'do something else - clear the clipboard maybe
    4.  End If
    5. End Sub

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width