CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2000
    Location
    IL, U.S.A.
    Posts
    218

    How do you show something in a label?

    I want to show a row of letters in a label when the form loads.

    So It would be lblLabel. Something " ABCDE"
    What would the something be and all of this would go under the
    Private Sub Form_Load()

    or

    Private Sub Form_GotFocus()

    If I was Inputting a string from a sequential file how would this look?
    Open strFileName For Input As #intFileNum
    Input #intFileNum, strTestName

    Then would I put?

    lblLabel. something strTestName



  2. #2
    Join Date
    Nov 2000
    Location
    Tokyo and Memphis
    Posts
    238

    Re: How do you show something in a label?

    label1.caption ="abc"

    command1 is also caption. caommand1.caption ="abc"

    In fact everything but text boxes = caption.

    text1.text = "abc"

    Good luck

    Phil


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured