Clipboard functionality in application like VB GUI
-
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
-
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
-
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
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
-
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
-
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
-
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
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?
-
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
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
-
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
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
-
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
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
-
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
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]