Results 1 to 4 of 4

Thread: [RESOLVED] Show Form while hovering over Picture

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2008
    Location
    South Africa
    Posts
    395

    Resolved [RESOLVED] Show Form while hovering over Picture

    I want to show (display) a form or even maybe a panel while the user is hovering over a PictureBox.

    How would these events work?

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Show Form while hovering over Picture

    You would handle the MouseHover event of the PictureBox and then do whatever is appropriate in that event handler. What else you do depends on the EXCACT behaviour you want, which you haven't described.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2008
    Location
    South Africa
    Posts
    395

    Re: Show Form while hovering over Picture

    I would like to display a graph in the Form . The form would contain a button , to enable printing the form

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2008
    Location
    South Africa
    Posts
    395

    Re: Show Form while hovering over Picture

    Ok, i figured it out.

    for Form1 the code is
    Code:
     Private Sub Button1_MouseEnter(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.MouseEnter
            Form2.Show()
        End Sub
    For Form2 the code is.

    Private Sub Form2_MouseLeave(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.MouseLeave
    Me.Close()
    End Sub

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