Microsoft KB Archive/254792

From BetaArchive Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
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