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

  1. Start VBDOS.EXE.


  2. From the File menu, choose New Form.


  3. Place a Command button (Command1) on the form and set the Caption property to SetText.


  4. Place another Command button (Command2) on the form and set the Caption property to GetText.


  5. From the File menu, choose Exit, and save all changes.


  6. Add the following code to the Command1_Click event procedure:
    
          Sub Command1_Click ()
             Clipboard.SetText "ON THE CLIPBOARD"
             End
          End Sub 


  7. Add the following code to the Command2_Click event procedure:
    
          Sub Command2_Click ()
             Print Clipboard.GetText()
          End Sub 


  8. Run the program.


  9. Click the SetText command button.


  10. Press SHIFT+F5 to restart the program.


  11. 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 :


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