Microsoft KB Archive/223365

From BetaArchive Wiki

Article ID: 223365

Article Last Modified on 10/16/2002



APPLIES TO

  • Microsoft Visual J++ 6.0 Standard Edition



This article was previously published under Q223365

SYMPTOMS

The mouseEnter and mouseLeave events might not get fired for WFC's PictureBox control.

STATUS

Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

This bug was corrected in Visual Studio 6.0 Service Pack 3. For more information about Visual Studio service packs, please see the following articles in the Microsoft Knowledge Base:

194022 INFO: Visual Studio 6.0 Service Packs, What, Where, Why

194295 HOWTO: Tell That Visual Studio 6.0 Service Packs Are Installed


MORE INFORMATION

Steps to Reproduce Behavior

  1. Create a new Windows EXE project in Visual J++ 6.0.
  2. Add a PictureBox control to the Form and set the Image property to a valid image file.
  3. Add two Label controls to the Form just below the PictureBox.
  4. Add the following two member variables to your class:

    int i1=0;
    int i2=0;
  5. Add a mouseEnter EventHandler and place the following code within it:

    label1.setText("Entered "+(++i1)+" times.");
  6. Add a mouseLeave EventHandler and place the following code within it:

    label2.setText("Exited "+(++i2)+" times.");
  7. Run the application and move your mouse in and out of the image area; no updates to the labels' text should occur.

(c) Microsoft Corporation 1999, All Rights Reserved. Contributions by Joseph B. Hall, Microsoft Corporation.


Keywords: kbbug kbfix kbvs600sp3fix KB223365