Results 1 to 5 of 5

Thread: to make label appear after click a button

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2008
    Location
    selangor, Malaysia
    Posts
    71

    to make label appear after click a button

    hey guys i would like to make my label appear only when i click the button. i've tried this code but it says methods or data member not found and highlight the word visible. Help me plz...



    Code:
    Private Sub lblNo_Click()
    
        lblRecDec.Visible = True
        txbRecDec.Visible = True
        lblFinish.Visible = True
        
    
    End Sub

  2. #2
    Fanatic Member Mxjerrett's Avatar
    Join Date
    Apr 2006
    Location
    Oklahoma
    Posts
    939

    Re: to make label appear after click a button

    Well make sure you have controls by all of those names. Check for typos

    If a post has been helpful please rate it.
    If your question has been answered, pull down the tread tools and mark it as resolved.

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: to make label appear after click a button

    Quote Originally Posted by Mxjerrett
    Well make sure you have controls by all of those names. Check for typos
    It has to be this.....this code worked just fine for me.
    Code:
    Private Sub lblNo_Click()
    lblRecDec.Visible = True
    txbRecDec.Visible = True
    lblFinish.Visible = True
    End Sub

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Jun 2008
    Location
    selangor, Malaysia
    Posts
    71

    Re: to make label appear after click a button

    so before we apply that code we must disable the visible properties of that label right?

  5. #5
    Member Cha0sBG's Avatar
    Join Date
    Jun 2008
    Location
    C:\Windows\System32
    Posts
    43

    Re: to make label appear after click a button

    A Simple example

    vb Code:
    1. Private Sub Form_Load()
    2. Label1.Visible = False ' So from the begining the label whount be visible
    3. End SuB

    And Then

    vb Code:
    1. Private Sub Command1_Click()
    2. Label1.visible = True ' when u click the button the label will be visible
    3. End Sub
    Last edited by Cha0sBG; Jul 1st, 2008 at 08:59 PM.

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