FIX: Label Caption Property Displays Default ValueID: Q180535
|
If the Caption property of a Label is set at design-time, querying the Label Caption property reflects the default caption (such as "Label1") instead of the caption that was set at design-time.
To avoid this problem, do one of two things:
Private Sub Form_Load()
Label1.Caption = "Hello World"
End Sub
Appearance = 0 - Flat
BackColor = &H8000000F&
BorderStyle = 0 - None
Microsoft has confirmed this to be a problem in the Microsoft products listed
at the beginning of this article.
This problem was corrected in Windows CE Toolkit for Visual Basic 6.0.
Private Sub Command1_Click()
MsgBox Label1.Caption
End Sub
© Microsoft Corporation 1999, All Rights Reserved.
Contributions by Mike Dixon, Microsoft Corporation
Additional query words: wince vbce vbce5 vbce6
Keywords : kbToolkit kbVBp kbVBp500bug kbVBp600fix kbWinCE kbWinCE100 kbGrpVB
Version : WINDOWS:1.0
Platform : WINDOWS
Issue type : kbbug
Last Reviewed: March 3, 1999