Article ID: 113331
Article Last Modified on 10/29/2003
APPLIES TO
- Microsoft Visual Basic 3.0 Professional Edition
- Microsoft Visual Basic 3.0 Professional Edition
This article was previously published under Q113331
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
- Start a new project in Visual Basic. Form1 is created by default.
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
Add the following code to the Command1 click event:
Sub Command1_Click () Panel3D1.Caption = "Changed" End Sub
- Run the program or press the F5 key.
- Click the Command1 button. The 3D panel caption will change.
- Move to the next record by using the data control.
- 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 query words: 3.00 THREED.VBX Edit AddNew Update buglist3.00 fixlist4.00
Keywords: kbbug kbfix KB113331