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. Visual Basic
  4. Clipboard functionality in application like VB GUI

Clipboard functionality in application like VB GUI

Scheduled Pinned Locked Moved Visual Basic
question
10 Posts 5 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.
  • F Offline
    F Offline
    for1206
    wrote on last edited by
    #1

    Hi CP, I developed an appl. in that i am having controls like textbox, combobox, list box,button ,etc and some other controls from PowerPacks. I implemented successfully Cut/ Copy / Paste of these controls within the application . Now i have to implement the things in Clipboard . How can i serialize the class which is maintaining the list of controls. Public Class Temp Dim lTempControls As List(Of Object) = Nothing End Temp So how can i serialize to clipboard and get all the things when i exit & open the application ? Regards,

    For1206

    D D L L 4 Replies Last reply
    0
    • F for1206

      Hi CP, I developed an appl. in that i am having controls like textbox, combobox, list box,button ,etc and some other controls from PowerPacks. I implemented successfully Cut/ Copy / Paste of these controls within the application . Now i have to implement the things in Clipboard . How can i serialize the class which is maintaining the list of controls. Public Class Temp Dim lTempControls As List(Of Object) = Nothing End Temp So how can i serialize to clipboard and get all the things when i exit & open the application ? Regards,

      For1206

      D Offline
      D Offline
      DaveAuld
      wrote on last edited by
      #2

      The Clipboard is common across the system, you interact with the clipboard through the MyComputer.Clipboard object.

      Dave Don't forget to rate messages! Find Me On: Web|Facebook|Twitter|LinkedIn Waving? dave.m.auld[at]googlewave.com

      D 1 Reply Last reply
      0
      • F for1206

        Hi CP, I developed an appl. in that i am having controls like textbox, combobox, list box,button ,etc and some other controls from PowerPacks. I implemented successfully Cut/ Copy / Paste of these controls within the application . Now i have to implement the things in Clipboard . How can i serialize the class which is maintaining the list of controls. Public Class Temp Dim lTempControls As List(Of Object) = Nothing End Temp So how can i serialize to clipboard and get all the things when i exit & open the application ? Regards,

        For1206

        D Offline
        D Offline
        Dalek Dave
        wrote on last edited by
        #3

        Use My.Computer.Clipboard This may help[^]

        ------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave

        F 1 Reply Last reply
        0
        • D DaveAuld

          The Clipboard is common across the system, you interact with the clipboard through the MyComputer.Clipboard object.

          Dave Don't forget to rate messages! Find Me On: Web|Facebook|Twitter|LinkedIn Waving? dave.m.auld[at]googlewave.com

          D Offline
          D Offline
          Dalek Dave
          wrote on last edited by
          #4

          You beat me to it!

          ------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave

          D 1 Reply Last reply
          0
          • D Dalek Dave

            Use My.Computer.Clipboard This may help[^]

            ------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave

            F Offline
            F Offline
            for1206
            wrote on last edited by
            #5

            Hi Dave, These things doesn't workout for me . Bcoz i implemented my custom way to build the application . Clipboard Serializable format but it's not working. Regards,

            For1206

            D 1 Reply Last reply
            0
            • F for1206

              Hi CP, I developed an appl. in that i am having controls like textbox, combobox, list box,button ,etc and some other controls from PowerPacks. I implemented successfully Cut/ Copy / Paste of these controls within the application . Now i have to implement the things in Clipboard . How can i serialize the class which is maintaining the list of controls. Public Class Temp Dim lTempControls As List(Of Object) = Nothing End Temp So how can i serialize to clipboard and get all the things when i exit & open the application ? Regards,

              For1206

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              for1206 wrote:

              So how can i serialize to clipboard

              Don't! Remember the clipboard is a user controlled mechanism. If you serialize to the clipboard and the application then terminates you have lost control of the clipboard, and potentially all your objects. Serialization should be to permanent storage, e.g. disk files.

              MVP 2010 - are they mad?

              1 Reply Last reply
              0
              • F for1206

                Hi Dave, These things doesn't workout for me . Bcoz i implemented my custom way to build the application . Clipboard Serializable format but it's not working. Regards,

                For1206

                D Offline
                D Offline
                Dalek Dave
                wrote on last edited by
                #7

                Ah, sorry then, I cannot help further. But do be careful and think before doing!!!

                ------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave

                1 Reply Last reply
                0
                • D Dalek Dave

                  You beat me to it!

                  ------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave

                  D Offline
                  D Offline
                  DaveAuld
                  wrote on last edited by
                  #8

                  Yeh, but notice we both got voted 1. Now was that because the suggestions weren't an acceptable answer for the OP, or did someone else think we were taking the pi$$. Guess we will never know! Do you want a 5 exchange?

                  Dave Don't forget to rate messages! Find Me On: Web|Facebook|Twitter|LinkedIn Waving? dave.m.auld[at]googlewave.com

                  D 1 Reply Last reply
                  0
                  • D DaveAuld

                    Yeh, but notice we both got voted 1. Now was that because the suggestions weren't an acceptable answer for the OP, or did someone else think we were taking the pi$$. Guess we will never know! Do you want a 5 exchange?

                    Dave Don't forget to rate messages! Find Me On: Web|Facebook|Twitter|LinkedIn Waving? dave.m.auld[at]googlewave.com

                    D Offline
                    D Offline
                    Dalek Dave
                    wrote on last edited by
                    #9

                    I will 5 you all the way down, just to be sure!

                    ------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave

                    1 Reply Last reply
                    0
                    • F for1206

                      Hi CP, I developed an appl. in that i am having controls like textbox, combobox, list box,button ,etc and some other controls from PowerPacks. I implemented successfully Cut/ Copy / Paste of these controls within the application . Now i have to implement the things in Clipboard . How can i serialize the class which is maintaining the list of controls. Public Class Temp Dim lTempControls As List(Of Object) = Nothing End Temp So how can i serialize to clipboard and get all the things when i exit & open the application ? Regards,

                      For1206

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

                      Like Richard said, you copy to/paste from the Clipboard, in whatever format suits your app (text, image, file list, ...); and you serialize to/from permanent storage in some format (binary, XML, ...) to make your object persistent. Those are two distinct mechanisms with different purposes. :)

                      Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]


                      I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that.
                      [The QA section does it automatically now, I hope we soon get it on regular forums as well]


                      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