DOCUMENT:Q191528 19-AUG-1998 [vbwin] TITLE :FIX: DBCombo Not Appearing on SSTab After Changing Settings PRODUCT :Microsoft Visual Basic for Windows PROD/VER:WINDOWS:5.0 OPER/SYS:WINDOWS KEYWORDS: ====================================================================== ------------------------------------------------------------------------ The information in this article applies to: - Microsoft Visual Basic Learning, Professional, and Enterprise Editions for Windows, version 5.0 ------------------------------------------------------------------------ SYMPTOMS ======== When you put a DBCombo control on a SSTab control in a form, and then switch your Display Settings from Small Fonts to Large Fonts, or vice versa, the DBCombo control no longer appears on the SSTab control, or it appears on the wrong tab. This problem occurs in both design time and run- time. RESOLUTION ========== Place a Frame control on the SSTab and then place the DBCombo control inside the Frame control. Set the BorderStyle property of the Frame to "0 - None" to hide the Frame. STATUS ====== Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This bug has been corrected in Microsoft Visual Basic, 6.0. MORE INFORMATION ================ Steps to Reproduce Behavior --------------------------- 1. Start a new Standard EXE project in Visual Basic 5.0. Form1 is created by default. 2. From the Project menu, choose Components and add the "Microsoft Tabbed Dialog" and "Microsoft Data Bound List" components to the project. 3. Place a SSTab control on Form1. There should be three (3) tabs: Tab0, Tab1 and Tab2. 4. Place a DBCombo control on Tab0 of the SSTab control. 5. Save the project and quit Visual Basic. 6. Click Start, Settings, Control Panel. Double-click "Display" to view the Display properties. 7. Select the Settings tab and change your Font size to the opposite setting. For example, if the Font size is currently set to Small Fonts, change it to Large Fonts. Otherwise, if the Font size is currently Large Fonts, change it to Small Fonts. Depending on your video driver, you may have to click the Advanced button to change the Font size setting. 8. Click OK and answer Yes when prompted to restart Windows. 9. Start Visual Basic and open the previously saved project. 10. Notice that the DBCombo correctly appears on Tab0. However, click Tab1 and then click back to Tab0. The DBCombo control does not appear on Tab0. You can select the DBCombo by using the drop-down list box in the Properties window. Once the control is selected, you can resize it and force it to redisplay. WORKAROUND ========== Put a Frame control on Tab0. Next, place the DBCombo control inside the Frame control. Set the BorderStyle of the Frame control to "0 - None" to hide the Frame. REFERENCES ========== For additional information, please see the following article in the Microsoft Knowledge Base: ARTICLE-ID: Q186270 TITLE : BUG: SSTab Control Containing OLE Control May Crash Additional query words: kbVBp kbCtrl kbVBp500bug kbVBp600fix ====================================================================== Version : WINDOWS:5.0 Platform : WINDOWS Issue type : kbbug Solution Type : kbfix ============================================================================= THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY. Copyright Microsoft Corporation 1998.