Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Windows Forms
  4. Should not copy-paste in textbox into textbox in C#.Net

Should not copy-paste in textbox into textbox in C#.Net

Scheduled Pinned Locked Moved Windows Forms
csharphelp
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    somagunasekaran
    wrote on last edited by
    #1

    Hi all, I have two Text boxes..But i need Should not copy-paste in textbox into another textbox in C#.Net... So pls Help me.... Regards Somasundaram G

    B 1 Reply Last reply
    0
    • S somagunasekaran

      Hi all, I have two Text boxes..But i need Should not copy-paste in textbox into another textbox in C#.Net... So pls Help me.... Regards Somasundaram G

      B Offline
      B Offline
      buchstaben
      wrote on last edited by
      #2

      basically I see two options: 1. subclass TextBox and overide WndProc(ref Message m) 2. catch TextChanged event and check if the textbox's text is equal to the clipboard's content. but this might get you in trouble, if (as I assume) these two textboxes should contain the same (e.g. password/email confirmation).

      D 1 Reply Last reply
      0
      • B buchstaben

        basically I see two options: 1. subclass TextBox and overide WndProc(ref Message m) 2. catch TextChanged event and check if the textbox's text is equal to the clipboard's content. but this might get you in trouble, if (as I assume) these two textboxes should contain the same (e.g. password/email confirmation).

        D Offline
        D Offline
        dan sh
        wrote on last edited by
        #3

        Here[^] is a thread about same issue. This might help you.

        Avoid Google. Use Blackle[^]

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups