Microsoft KB Archive/73800

= PRB: Edit Menu Commands Have No Effect on Properties Bar Text =

Article ID: 73800

Article Last Modified on 12/12/2003

-

APPLIES TO


 * Microsoft Visual Basic 2.0 Standard Edition
 * Microsoft Visual Basic 3.0 Professional Edition
 * Microsoft Visual Basic 2.0 Professional Edition
 * Microsoft Visual Basic 3.0 Professional Edition
 * Microsoft Visual Basic 1.0 Standard Edition

-



This article was previously published under Q73800



SYMPTOMS
The Edit menu commands (such as Cut, Copy, Paste, and Undo) have no effect when applied to selected text in the Properties Bar entry window.



CAUSE
The Properties Bar entry window was not designed to handle the Edit menu commands (such as Cut, Copy, Paste, and Undo). The Edit menu commands affect the controls on the form, not the Properties Bar entry window even if you first select text in the Properties Bar entry window before choosing the Edit menu with the mouse.



RESOLUTION
Instead of choosing Edit commands with the mouse, select the desired text in the Properties Bar entry window and use the Edit shortcut keys, as follows: Command   Shortcut Keys

Cut       SHIFT+DELETE Copy      CTRL+INSERT Paste     SHIFT+INSERT Undo      ALT+BACKSPACE NOTE: NUM LOCK needs to be off if you select the DELETE or INSERT key from the numeric keypad.

For example, select text in the Properties Bar entry window. Then press CTRL+INSERT (while NUM LOCK is off) to copy text to the Clipboard. Press SHIFT+INSERT to paste clipboard text into the Properties Bar entry window. Press ALT+BACKSPACE to undo a cut, copy, or paste.



STATUS
This behavior is by design.



Steps to Reproduce Behavior
 Start Visual Basic. From the File menu, choose New Project. Double-click a label box from the Toolbox (symbolized by a capital A in script). This should display a label box on the form. With the mouse, select the text fragment &quot;Lab&quot; from the &quot;Label1&quot; Caption in the Properties Bar entry window, and choose Copy from the Edit menu.

NOTE: While you may have thought you just copied &quot;Lab&quot; into the Clipboard, you actually copied the entire Label1 control (from the form) into the Clipboard. Clicking the Edit menu anywhere outside the Properties Bar entry window causes the focus to revert back to the Label1 control on the form. Click the &quot;Form1&quot; text appearing in the Properties Bar entry window to set the focus there.</li> From the Edit menu, choose Paste (again, clicking the Edit menu or anywhere outside the Properties Bar entry window causes the focus to revert back to the Label1 control on the form.) This causes the following message box to appear:

&quot;You already have a control named 'Label1'. Do you want to create a control array?&quot;.

Select either the Yes or No command button. Notice that another copy of the Label1 box will appear in the upper left corner of the form.</li></ol>

Additional query words: 2.00 3.00

Keywords: kbprb KB73800

-

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

© Microsoft Corporation. All rights reserved.