The information in this article applies to:
SYMPTOMSIf you use the Visual Basic LoadPicture function to load an icon file (.ICO) into a picture control, and then attempt to copy that picture control's picture to the Clipboard by using the SetData method, the following error message is displayed regardless of the format specified in SetData method: This error also occurs if you attempt to load an icon file directly onto the Clipboard by using this code:
CAUSEThe Microsoft Windows Clipboard in Windows has no CF_ICON format, so the Clipboard cannot be assigned Icons. STATUSThis behavior is by design in Microsoft Windows Clipboard. WORKAROUND
To work around the problem, set the picture control's Autoredraw
property to True (-1) and use the Picture control's Image property in
the SetData method rather than the Picture control's picture property.
'*** This code will avoid the error ***
'*** This code will also work ***
Additional query words: 2.00 3.00
Keywords : |
Last Reviewed: August 19, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |