Good Morning, I have a control button showing text and I would like to display a picture when I hover over that control button and disappear when I move on to the next control button. As an example I have 3 control buttons with the text "Apple", "Pear" and "Orange". When I hover over the text "Apple", I would like a picture of an Apple to be displayed next to it but as soon as I move to the "Pear" text a picture of a Pear appears next to it. Can anyone help me out on this.
I found this but am having trouble where to put the code to make it work correctly.
Add below code to form on which you have added all the label, button and image.
Option Compare Database
Private Sub Command0_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Image1.Visible = True Then Exit Sub
Image1.Visible = True
End Sub
Private Sub Form_Load()
Image1.Visible = False
End Sub
Private Sub Label4_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Image1.Visible = False
End Sub
Thanks, John
I found this but am having trouble where to put the code to make it work correctly.
Add below code to form on which you have added all the label, button and image.
Option Compare Database
Private Sub Command0_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Image1.Visible = True Then Exit Sub
Image1.Visible = True
End Sub
Private Sub Form_Load()
Image1.Visible = False
End Sub
Private Sub Label4_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Image1.Visible = False
End Sub
Thanks, John