Text Box Does Not Highlight Text When Word Double-Clicked

ID: Q94160


The information in this article applies to:
  • Microsoft Visual Basic Standard and Professional Editions for MS-DOS, version 1.0


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 :
Version : MS-DOS:1.0
Platform : MS-DOS
Issue type :


Last Reviewed: December 10, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.