Microsoft KB Archive/191051

= BUG: Cursor on Wrong Line After Opening Page =

Article ID: 191051

Article Last Modified on 3/7/2005

-

APPLIES TO


 * Microsoft Visual InterDev 6.0 Standard Edition

-



This article was previously published under Q191051



SYMPTOMS
When you open a page by double-clicking an item in the Task List, the cursor might not be positioned on the correct line when the page contains one or more controls.



CAUSE
When a design-time control is shown graphically in Source view, several lines of text are actually hidden. The graphical control consumes one line in the editor, but several lines of text might actually have been used in the file. When you open a file from the Task List, the cursor appears on the wrong line because line numbers are being counted as if the controls were not shown graphically.



RESOLUTION
If the file is already open in the editor, the Task List correctly locates the appropriate line. After you double-click an item in the Task List and if the cursor is on the wrong line, double-click the item in the Task List a second time to position the cursor at the correct location.



STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available.



Steps to Reproduce Behavior

 * 1) Open an Active Server Pages page from a Web project into Source view.
 * 2) Drag a ButtonDTC from the Toolbox onto the page.
 * 3) Right-click on a line that follows the ButtonDTC, and click Add Shortcut.
 * 4) Save and close the page.
 * 5) From the View menu, click Other Windows, and then click Task List to open the Task List.
 * 6) Double-click the item that you created in step 3.

Keywords: kbbug kbctrl kbpending KB191051

-

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

© Microsoft Corporation. All rights reserved.