Clipboard Not Cleared After Restart in Interpreter Environment
ID: Q94782
|
The information in this article applies to:
-
Microsoft Visual Basic Standard and Professional Editions for MS-DOS, version 1.0
SYMPTOMS
Text stored in the clipboard using the SetText() method incorrectly
remains even after restarting your program in the interpreter
environment.
WORKAROUND
To work around the problem, put a Clipboard.Clear statement in your program
before using the clipboard.
STATUS
Microsoft has confirmed this to be a bug in both the Standard and
Professional Editions of Microsoft Visual Basic version 1.0 for MS-DOS.
We are researching this problem and will post new information here in the
Microsoft Knowledge Base as it becomes available.
MORE INFORMATION
Steps to Reproduce Problem
- Start VBDOS.EXE.
- From the File menu, choose New Form.
- Place a Command button (Command1) on the form and set the Caption
property to SetText.
- Place another Command button (Command2) on the form and set the
Caption property to GetText.
- From the File menu, choose Exit, and save all changes.
- Add the following code to the Command1_Click event procedure:
Sub Command1_Click ()
Clipboard.SetText "ON THE CLIPBOARD"
End
End Sub
- Add the following code to the Command2_Click event procedure:
Sub Command2_Click ()
Print Clipboard.GetText()
End Sub
- Run the program.
- Click the SetText command button.
- Press SHIFT+F5 to restart the program.
- Choose the GetText command button.
At this point, you will see that the text did not clear when the program
restarted.
Additional query words:
VBmsdos buglist1.00 1.00
Keywords :
Version : MS-DOS:1.0
Platform : MS-DOS
Issue type :