P
Pascal Cloup
Hello,
Is it possible to put in the Clipboard, an object which implements the
IDataObject interface but that knows only a format that is not defined in
the DataFormats?
What i want to do is to pull an object from the clipboard lke this:
IDataObject pulledObject = Clipboard.GetDataObject();
if ( pulledObject != null && pulledObject.GetDataPresent(
"MyObjectFormat" ) )
{
CMyClass A = pulledObject.GetData( "MyObjectFormat") as
CMyClass;
}
Pascal
Is it possible to put in the Clipboard, an object which implements the
IDataObject interface but that knows only a format that is not defined in
the DataFormats?
What i want to do is to pull an object from the clipboard lke this:
IDataObject pulledObject = Clipboard.GetDataObject();
if ( pulledObject != null && pulledObject.GetDataPresent(
"MyObjectFormat" ) )
{
CMyClass A = pulledObject.GetData( "MyObjectFormat") as
CMyClass;
}
Pascal