Microsoft KB Archive/908422

= BUG: Event handlers that are associated with a ListObject control stop responding on an Office Excel worksheet that is hosted in Visual Studio 2005 =

Article ID: 908422

Article Last Modified on 12/7/2005

-

APPLIES TO


 * Microsoft Visual Studio 2005 Tools for the Microsoft Office System
 * Microsoft Office Excel 2003

-





SYMPTOMS
Consider the following scenario. You add or delete columns or rows from a non-databound ListObject control in a Microsoft Office Excel worksheet. Then you use the Undo List Resize command.

Note The Office Excel worksheet is hosted in Microsoft Visual Studio 2005 at run time.

In this scenario, event handlers that are associated with the ListObject control stop responding (hang).



STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed in the &quot;Applies to&quot; section.



Steps to reproduce the problem
 Start Visual Studio 2005. On the File menu, click New, and then click Project. In the New Project dialog box, click Office, and then click Excel Workbook. Type a name in the Name box, and then click OK.

Office Excel is now hosted on Visual Studio 2005. In the Toolbox, click Excel Controls, and then add a ListObject control to Sheet1.

A list that contains one column and no data is created on Sheet1. Double-click the list that you created in step 5 to open the Sheet1 code window.</li>  Add the following code to the list1_Change event handler: MessageBox.Show(&quot;ListChange&quot;) </li> On the Debug menu, click Start Debugging to build and run the project.</li> In the new Office Excel workbook, add an item to the list by typing some text in cell A1, and then press ENTER.

Notice that the ListChange message box appears.</li> Resize the list by dragging the lower-right corner of the list one column to the right.

The ListChange message box appears when you finish dragging.</li> On the Edit menu, click Undo ListResize.

Notice that the ListChange message box does not appear.</li> Add an item to the list by typing some text in cell A2, and then press ENTER.

The ListChange message box again does not appear, and handlers that are associated with the ListObject control stop responding.</li></ol>

Keywords: kbtshoot kbbug kbpending KB908422

-

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

© Microsoft Corporation. All rights reserved.