ID Number: Q81465
1.00
WINDOWS
Summary:
Pressing the HOME key while in the Code window in the VB.EXE
environment will move the insertion point (cursor) to the beginning of
the code in a line instead of to the first column of the line (a
behavior that differs from most other Windows products). This behavior
is by design.
This information applies to Microsoft Visual Basic programming system
for Windows version 1.0.
More Information:
If the insertion point is on a line of code indented with spaces, and
you press HOME, the insertion point will not be moved to the beginning
of the line, but will instead be moved only to the beginning of the
code.
In many Windows applications, including Microsoft Word for Windows,
Notepad, and Write, pressing the HOME key moves the insertion point to
the beginning of the line instead of to the beginning of the
characters on the line.
Steps to Reproduce Behavior
---------------------------
1. Run Visual Basic, or from the File menu, choose New Project (ALT,
F, N) if Visual Basic is already running. Form1 is created by
default.
2. Double-click Form1 to open the Code window.
3. In the Form1_Click event, press TAB to indent the next statement,
and add the following:
Print "Hello"
4. Press HOME. The insertion point will move to the "P" in "Print."
5. Press the HOME key again.
You may expect the insertion point will move to the beginning of the
line, but instead it remains on the "P."
Additional reference words: 1.00