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. C#
  4. Clipboard problem

Clipboard problem

Scheduled Pinned Locked Moved C#
helpcsharptutorial
5 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.
  • C Offline
    C Offline
    CodeItWell
    wrote on last edited by
    #1

    How to do this. When user stores something in clipboard, my program to store that in a text file. Please help. Thanks.

    C#

    S 1 Reply Last reply
    0
    • C CodeItWell

      How to do this. When user stores something in clipboard, my program to store that in a text file. Please help. Thanks.

      C#

      S Offline
      S Offline
      snorkie
      wrote on last edited by
      #2

      Use the "Clipboard" object. Try searching Google first and you will get your answer faster... Find a sample here. Clipboard example by searching Google for "C# clipboard" Hogan

      C 1 Reply Last reply
      0
      • S snorkie

        Use the "Clipboard" object. Try searching Google first and you will get your answer faster... Find a sample here. Clipboard example by searching Google for "C# clipboard" Hogan

        C Offline
        C Offline
        CodeItWell
        wrote on last edited by
        #3

        Thanks, but I don't want to check every second the clipboard. That should be something like an event, when the clipboard content is changed, then the program to store the data somewhere.

        C#

        L 1 Reply Last reply
        0
        • C CodeItWell

          Thanks, but I don't want to check every second the clipboard. That should be something like an event, when the clipboard content is changed, then the program to store the data somewhere.

          C#

          L Offline
          L Offline
          Luc Pattyn
          wrote on last edited by
          #4

          Hi, the clipboard is a unique system-wide resource; it is accessible through the Clipboard class which has several methods, but no properties and no events. other unique resources (such as keyboard and mouse) are associated to a single process and a single control at a time, clipboard is different. SO the only solution would be to periodically poll it, check for text, compare with previous text, etc. :)

          Luc Pattyn [Forum Guidelines] [My Articles]


          this weeks tips: - make Visual display line numbers: Tools/Options/TextEditor/... - show exceptions with ToString() to see all information - before you ask a question here, search CodeProject, then Google


          C 1 Reply Last reply
          0
          • L Luc Pattyn

            Hi, the clipboard is a unique system-wide resource; it is accessible through the Clipboard class which has several methods, but no properties and no events. other unique resources (such as keyboard and mouse) are associated to a single process and a single control at a time, clipboard is different. SO the only solution would be to periodically poll it, check for text, compare with previous text, etc. :)

            Luc Pattyn [Forum Guidelines] [My Articles]


            this weeks tips: - make Visual display line numbers: Tools/Options/TextEditor/... - show exceptions with ToString() to see all information - before you ask a question here, search CodeProject, then Google


            C Offline
            C Offline
            CodeItWell
            wrote on last edited by
            #5

            Thanks.

            C#

            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