Consulting

Results 1 to 4 of 4

Thread: Image Popup when mouse arrow is on Button

  1. #1

    Image Popup when mouse arrow is on Button

    Hi Guys

    I'm Quite new to VBA Programming n working on a project facing one Obstacle regarding that

    I don't have any problem regrading the project but my Problem starts when i tried to make my tool more user friendly

    i tried to put comments on conditional cells in form of images but i also want to put these Image POPUPS on buttone also what i desired is when ever mose arrow hover over a button a image pop should appear

    i' tried to google it but of no use

    I'd be highly indebted if any one could please help me regarding this problem i'm attaching a dummy file for better under standing

    Thanks a Lot

    Regards
    Ravinder Singh

  2. #2
    VBAX Regular
    Joined
    Sep 2009
    Posts
    57
    Location
    just a suggestion and probably not the best i have used in the past

    Private Sub Commandbutton1_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single)

    If X > 1 And X < 88 And Y > 1 And Y < 23 Then
    Image1.Visible = True
    Else
    Image1.Visible = False
    End If

    End Sub

    the numbers corrispond to the width and height of my command button. when they are within the limits its visible and outside not visible. obviously i had set the image to not visible to begin with.

  3. #3
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Is it forms buttons or control toolbox?
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  4. #4
    thanks a lot its a gud solution but what i had in mind was to use different events like Set Focus and lost Focus Could u please help me in that

    Regards,
    Ravinder Singh

Posting Permissions

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