|
-
Sep 3rd, 2010, 03:12 AM
#1
Thread Starter
Hyperactive Member
[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?
-
Sep 3rd, 2010, 03:53 AM
#2
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.
-
Sep 3rd, 2010, 04:01 AM
#3
Thread Starter
Hyperactive Member
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
-
Sep 3rd, 2010, 04:05 AM
#4
Thread Starter
Hyperactive Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|