Microsoft KB Archive/254792

From BetaArchive Wiki
< Microsoft KB Archive
Revision as of 17:17, 18 July 2020 by 3155ffGd (talk | contribs) (importing KB archive)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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