Label caption problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Stone
    New Member
    • Jul 2006
    • 11

    Label caption problem

    HI I am new to this forum.
    The problem I am facing is that when I do the coding for the
    label. The caption option doesnot appear in the drop down menu
    when I write the label name (e.g : lbldisplay.) .and if I type caption by myself
    it gives the error 'Caption' is not a member of 'System.window. forms.label'.
    I am using Express edition 2005 of VB.
  • Enyi
    New Member
    • Jul 2006
    • 38

    #2
    The label control in .NET does not have a property called "Caption" as your error suggests. It is called "Text", this is the actual text that is displayed in the label.

    Enyi

    Comment

    • Stone
      New Member
      • Jul 2006
      • 11

      #3
      Thanks Enyi :)
      The problem is solved.

      Comment

      Working...