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

ID: Q129743

The information in this article applies to:

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.

RESOLUTION

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 query words: kbVBp300bug kbVBp400bug kbVBp kbDSupport kbdsd kbIcon kb16bitonly

Version           : 3.00 4.00
Platform          : NT WINDOWS
Issue type        : kbbug

Last Reviewed: August 24, 1998