Mark Hurd
1/5/2003 4:21:00 PM
Markus wrote:
> Hi,
>
>
>
> The following sample is part of the Visual Studio .NET
> Online help, but it doesn't work. Until now I was not able
> to store data in a custom data format in the clipboard and
> retrieve it back within the .NET platform.
> On retrieving the data back I always receive a null handle.
>
>
>
> How can this be achieved?
>
>
>
> Best regards
>
> Markus Buchberger
I haven't reviewed your code thoroughly, but I've found the .NET Clipboard
support requires an active Windows message loop, especially when setting data.
See if your tests work when the "copy" and "paste" are in separate events.
Regards,
Mark Hurd, B.Sc.(Ma.) (Hons.)