Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2011
    Posts
    413

    Unanswered: Label visible or invisible criteria

    If Label99.Visible = False Then Label99.Visible = True

    This is the criteria I am using to make a label visible on mousemove event over the Command button named 97.
    Maybe I am going about this in the wrong way so here is what I am trying to do.
    I have a command button named Command97 that opens a popup form setting the date and this works fine but the user needs to be able to have a better explanation since the button does not get focus or have a tab order.I also have a label named as above which upon the mousemove event makes the label appear and provides an explanation of the command button.I want the label to be otherwise invisible which is it's default.How can I do this or what do you suggest otherwise?

  2. #2
    Join Date
    Apr 2011
    Posts
    34
    Try this:
    Code:
    Private Sub MyButton_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
    Me.Label1.Visible = True
    End Sub
    Private Sub Detail_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
    Me.Label1.Visible = False
    End Sub
    MyButton is the button that triggers the label to be visible.
    Detail is the detail area of the form where the button is located.

Posting Permissions

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