That always returns 'nothing'.
If I view the GetType in a watch window...there's a bunch of stuff in
there....not too sure what it all is. ;-)
Is there something in my object that need to define? For example, my Shapes
class looks something like this:
Public Class Shapes
Public Clr as color
public Class Line
Inherits Shapes
.....
end class
public Class Circle
Inherits Shapes
.........
end class
end class
"Brian Swanson" <pu*******@gREMOVETHISmail.com> wrote in message
news:u8**************@TK2MSFTNGP09.phx.gbl...
You should use:
toShapes = iData.GetData(toShapes.GetType)
Hope this helps,
Brian Swanson
"Rob T" <RT*********@DONTwalchemSPAM.com> wrote in message
news:RT*********@DONTwalchemSPAM.com: I'm having problem pasting a user defined object that's put into the
clipboard....
Here's a crude example of what I'm trying to get done.
Dim fromShapes as Shapes 'shapes is my custom object
Dim toShapes as Shapes
Clipboard.SetDataObject(fromShapes) ' this works...I can see in
clipboard.exe that it has changed
Dim iData as IDataObject = Clipboard.GetDataObject
toShapes = iData.GetData("NOT SURE WHAT TO PUT HERE")
Thanks.