Microsoft KB Archive/84471

= BUG: Some Controls Not Printed with PrintForm in Windows 3.1 =

Article ID: 84471

Article Last Modified on 1/9/2003

-

APPLIES TO


 * Microsoft Visual Basic 1.0 Standard Edition

-



This article was previously published under Q84471



SYMPTOMS
In Windows version 3.1, if you print a Visual Basic form to a printer by either selecting Print from the File menu during design time or by using the PrintForm method during run time, some of the controls on the form may not be not be printed (such as the frame, command button, option button, or check box). This problem is known to occur when using Windows 3.0 video drivers with Windows version 3.1. The problem is also known to occur with third-party video drivers that claim to be Windows version 3.1 compatible. The problem does not occur when you run Visual Basic with Windows version 3.0.



WORKAROUND
To overcome this problem, delete the old video driver and install the new Windows version 3.1 compatible driver. This can be done through Windows Setup (see your Windows version 3.1 manual for details).



STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.



MORE INFORMATION
This problem may result when you install Windows version 3.1, because some of the Windows version 3.0 video drivers may not be updated.

Steps to Reproduce Problem
To reproduce the problem, do the following (using a Windows version 3.0 video driver with Windows version 3.1):

 Start Visual Basic, or from the File menu, choose New Project (ALT, F, N) if Visual Basic is already running. Form1 is created by default. Add controls to Form1 such as frame, command button, check box, and option button. From the File Menu, choose Print. In the Print dialog box, select Current and Form. Choose the OK button to start printing. Note that the frame, command button, and option button are not printed.</li>  Add the following code to the Form1 Click event: Form1.PrintForm </li> Press F5 to run the program.</li> Click in the form.</li> Note that the frame, command button, and the check box are not printed.</li></ol>

To overcome this problem, delete the old video driver and install the new Windows 3.1 compatible driver. You can do this through Windows Setup (see your Windows 3.1 manual for details).

Additional query words: buglist1.00

Keywords: kbbug KB84471

-

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

© Microsoft Corporation. All rights reserved.