BUG: Icon Distorted When Dragged in 16-Bit VB & Windows NT

Last reviewed: July 19, 1996
Article ID: Q129743
The information in this article applies to:
  • Professional and Enterprise Editions of Microsoft Visual Basic, 16-bit only, version 4.0
  • Standard and Professional Editions of Microsoft Visual Basic for Windows, version 3.0
  • Microsoft Window NT

SYMPTOMS

When running Microsoft Visual Basic version 4.0 in 16-bit mode under Microsoft Windows NT, the icon specified in the DragIcon property of a control appears scrambled and distorted when you drag it. The icon also loses all colors and appears in black.

You may also see this behavior Windows 95 running an ATI Mach 32 video card.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Start a new project in the 16-bit edition of Visual Basic version 4.0 under Windows NT. On the File menu, click New Project. Form1 is created by default.

  2. Place a Command Button (Command1) on Form1.

  3. Set the DragMode property for Command1 to "1-Automatic."

  4. Set the DragIcon property for Command1 to an icon.

  5. On the Run menu, click Start.

  6. Click the Command1 button, and try to drag it.

  7. Notice how the icon appears distorted and scrambled. If this icon is colored, notice how it appears in black. To see how the icon should appear, add an Image control to the form and set its Picture property to the same icon used in the DragIcon property of Command1.

WORKAROUND

This problem does not occur in the 32-bit edition of Visual Basic version 4.0. This is the only workaround.

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.


Additional reference words: 3.00 4.00 buglist4.00 vb4win vb416 buglist3.00
KBCategory: kbui kbbuglist
KBSubcategory: EnvtRun


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: July 19, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.