Microsoft KB Archive/90902

= CHAIN While in Graphics Mode to Forms Program Trashes Screen =

PSS ID Number: 90902

Article Last Modified on 1/8/2003

-

The information in this article applies to:


 * Microsoft Visual Basic for MS-DOS 1.0

-



This article was previously published under Q90902



SYMPTOMS
If you chain form a compiled application using the run-time module while in a graphics mode to another application using the run-time module that uses forms mode, colorful garbage characters will be printed to the screen rather than the expected error message.



WORKAROUND
To work around this problem, add a SCREEN 0 statement just before the CHAIN statement. This will set the proper screen mode that is required for the form to be displayed.



STATUS
Microsoft has confirmed this to be a bug in Microsoft Visual Basic for MS-DOS, version 1.0. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.



MORE INFORMATION
The problem is with the forms when using the run-time module. The error message &quot;Invalid Screen Mode&quot; is not displayed when the you attempt to use forms before switching to SCREEN 0.

This problem does not occur with applications compiled with the /0 (stand-alone) option. If you try this within the interpretive environment (VBDOS.EXE), you will receive the expected error message &quot;Invalid Screen Mode.&quot;

Additional query words: VBmsdos buglist1.00 1.00

Keywords: KB90902

Technology: kbAudDeveloper kbVB100DOS kbVBSearch kbZNotKeyword3

-

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

© 2004 Microsoft Corporation. All rights reserved.