Groups | Blog | Home
all groups > dotnet general > april 2005 >

dotnet general : Clipboard


JohnK
4/26/2005 3:46:03 PM
I'm trying to copy/paste via the clipboard a queue of objects

Clipboard.SetDataObject(myQueue) 'the queue contains 7 of my objects

some place else I do

iData = Clipboard.GetDataObject()

myQueue = DirectCast(iData.GetData("System.Collections.Queue", True), Queue)

myQueue always ends up referencing nothing

JohnK
4/26/2005 7:40:02 PM
ok, got it.... just added the Serializable attribute to the class...

[quoted text, click to view]
AddThis Social Bookmark Button