Microsoft KB Archive/215395

= BUG: SelChange Event in a Grid Executes on a Selected Cell =

Article ID: 215395

Article Last Modified on 8/19/2005

-

APPLIES TO


 * Microsoft Windows CE Toolkit for Visual Basic 6.0

-



This article was previously published under Q215395



SYMPTOMS
The SelChange Event in the Grid control executes on a highlighted cell. The expected behavior is that the SelChange Event only executes when a cell in the grid is selected the first time.



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



MORE INFORMATION
This section shows how to create a sample project that demonstrates the behavior.

Steps to Reproduce Behavior
 Start a new Windows CE HPC project in Visual Basic. Form1 is created by default. Select Components from the Project menu and select the Microsoft CE Grid Control 6.0. Add a Grid control to Form1.  Copy the following code to the Form1 code window: Option Explicit

Private Sub GridCtrl1_SelChange MsgBox "Executed SelChange Event" End Sub  Press the F5 key to start the project. Select a particular cell in the grid. The message box appears indicating the SelChange Event has executed. Close the message box and click the same cell again.

BUG: The same message box appears indicating the SelChange Event has executed. The expected behavior is that the SelChange event would not fire when clicking the cell that's already selected.

Additional query words: vbce vbce6

Keywords: kbbug kbtoolkit kbpending KB215395

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.