Microsoft KB Archive/94160

= Text Box Does Not Highlight Text When Word Double-Clicked =

PSS ID Number: 94160

Article Last Modified on 1/8/2003

-

The information in this article applies to:


 * Microsoft Visual Basic for MS-DOS 1.0

-



This article was previously published under Q94160



SUMMARY
If you double-click on a word in a Microsoft Visual Basic for MS-DOS text box, or in the text portion of a combo box control, the word is incorrectly not highlighted. This differs from the Microsoft Visual Basic for Windows text box or the text portion of a combo box control. In Visual Basic for Windows, you can double-click on a word in a text box or in the text portion of a combo box control to select the word.

This is by design. There is no double-click event or other mouse event for a text box control in Visual Basic for MS-DOS, so there's no way to cause the current word to be highlighted when you double-click it.



MORE INFORMATION
The following steps reproduce the situation:


 * 1) Start VBDOS.EXE.
 * 2) From the File menu, choose New Form (press ALT, F, F).
 * 3) From the New Form dialog, choose the OK button to create FORM1.FRM.
 * 4) Put a Text box (Text1) on Form1.
 * 5) From the File menu, choose Save (press ALT, F, S) to save FORM1.FRM.
 * 6) From the File menu, choose Exit (press ALT, F, X) to exit the Form Designer.
 * 7) From the Run menu, choose Start (press ALT, R, S). Try to highlight the word Text1 in the text box by double-clicking it. You won't be able to highlight it.

Additional query words: VBmsdos 1.00

Keywords: KB94160

Technology: kbAudDeveloper kbVB100DOS kbVBSearch kbZNotKeyword3

-

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

© 2004 Microsoft Corporation. All rights reserved.