FIX: Bound 3D Panel Control Won't Update When Caption Changed

Last reviewed: October 30, 1997
Article ID: Q113331
3.00 WINDOWS kbprg kbbuglist

The information in this article applies to:

- Standard and Professional Editions of Microsoft Visual Basic

  Programming System for Windows, version 3.0

SYMPTOMS

If you assign a new caption to a bound 3D panel control, the field is not changed when the data control updates.

CAUSE

The 3D panel control does not change the DataChanged property. However, the Visual Basic label control does not demonstrate this behavior. When using the label control, you will see that the field will change when the data control updates.

WORKAROUND

To work around the problem, you can set the DataChanged property to true for the 3D panel after changing the caption. For Example:

   Panel3D1.Caption = "Changed"
   Panel3D1.DataChanged = True

STATUS

Microsoft has confirmed this to be a bug in Visual Basic version 3.0 for Windows. This problem has been corrected in Visual Basic version 4.0.

MORE INFORMATION

Steps to Reproduce Problem

  1. Start a new project in Visual Basic. Form1 is created by default.

  2. Add a Data control (Data1), Panel 3D control (Panel3D1), and a Command button (Command1) to Form1, setting their properties as indicated in the following table:

       Control        Property        Value
       ------------------------------------------------
       Data1          DatabaseName    C:\VB\BILIO.MDB
                      RecordSource    Authors
       Panel3D1       DataSource      Data1
                      DataField       Author
       Command1
    
    

  3. Add the following code to the Command1 click event:

       Sub Command1_Click ()
          Panel3D1.Caption = "Changed"
       End Sub
    
    

  4. Run the program or press the F5 key.

  5. Click the Command1 button. The 3D panel caption will change.

  6. Move to the next record by using the data control.

  7. Move back to the previous record by using the data control.

The caption of the 3D panel will hold the original data from the database.


Additional reference words: 3.00 THREED.VBX Edit AddNew Update buglist3.00
fixlist4.00
KBCategory: kbprg kbbuglist
KBSubcategory: PrgOther
Keywords : PrgOther kbbuglist kbprg
Version : 3.00
Platform : WINDOWS
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.

Last reviewed: October 30, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.