Registrations are now open. Join us today!
There is still a lot of work to do on the wiki yet! More information about editing can be found here.
Already have an account?

Microsoft KB Archive/254792

From BetaArchive Wiki
Knowledge Base


Article ID: 254792

Article Last Modified on 8/19/2005



APPLIES TO

  • Microsoft Windows CE Toolkit for Visual Basic 6.0



This article was previously published under Q254792

SYMPTOMS

If the Close button on a CommandBar control is clicked, the CommandBar disappears even if the QueryUnload event is canceled.

STATUS

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

MORE INFORMATION

Steps to Reproduce Behavior

  1. Start a new Windows CE Project in Visual Basic. Form1 is created by default.
  2. From the Project menu, select Components, and then select the Microsoft CE CommandBar Control 6.0.
  3. Add a CommandBar Control to Form1.
  4. Paste the following code into Form1:

    Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
       Cancel = True
    End Sub
                        
  5. Run the project. Click the Close box on the CommandBar, and note that the CommandBar immediately disappears after the Close box is clicked.



Additional query words: wce vbce vbce6

Keywords: kbbug kbtoolkit kbpending KB254792