PRB: User-defined Formats in OLE Drag-Drop Require Byte Arrays (163234)
The information in this article applies to:
- Microsoft Visual Basic Learning Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
- Microsoft Visual Basic Control Creation Edition for Windows 5.0
- Microsoft Visual Basic Learning Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
This article was previously published under Q163234 SYMPTOMS
When using the SetData method for OLE Drag/Drop functionality, data in a
user-defined format will cause the following message to be displayed at run-
time:
"Non-intrinsic OLE drag-and-drop formats used with SetData require
Byte array data. GetData may return more bytes than were given to
SetData."
RESOLUTION
To work around this behavior, make sure that the data being dragged is
placed into a byte array. Decoding the byte array using the GetData is then
dependent upon the methods by which this array was created.
STATUS
This behavior is by design.
| Modification Type: | Major | Last Reviewed: | 5/13/2003 |
|---|
| Keywords: | kbprb KB163234 |
|---|
|