BUG: VBCE: CommandBar Disappears Before the QueryUnload Event (254792)



The information in this article 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.

Modification Type:MinorLast Reviewed:8/19/2005
Keywords:kbBug kbpending kbToolkit KB254792