473,395 Members | 1,915 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Using MouseEnter on picturebox

Im quite new at csharp and im trying to use the onmouseenter event but i can't get it to work.

i used;
Expand|Select|Wrap|Line Numbers
  1. private void picDraw_MouseEnter(object sender, EventArgs e)
  2. {
  3. the action
  4. }
  5.  
  6. private void picDraw_OnMouseEnter(object sender, EventArgs e)
  7. {
  8. the action
  9. }
  10.  
Mar 14 '11 #1

✓ answered by HaLo2FrEeEk

Create a picturebox, go into its events and double click the "MouseEnter" one, which will create a new event handler in your code. Inside the event handler, put this single line:

MessageBox.Show("Something");

Then debug. If, when you put your mouse over the image, a messagebox pops up, then your event handler is working as it should. There's no reason it shouldn't.

2 3753
Leito
58
What do you want to do exactly ? The MouseEnter event is triggered when the mouse is over your picture. Is it the event you want to manage ?
Mar 14 '11 #2
HaLo2FrEeEk
404 256MB
Create a picturebox, go into its events and double click the "MouseEnter" one, which will create a new event handler in your code. Inside the event handler, put this single line:

MessageBox.Show("Something");

Then debug. If, when you put your mouse over the image, a messagebox pops up, then your event handler is working as it should. There's no reason it shouldn't.
Mar 15 '11 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Typpo | last post by:
Hi all, I'm not sure where to start. Using a PictureBox's click event: private void pb_Click(object sender, EventArgs e) { // ??? } ....how would I retrieve the coordinates of the mouse...
4
by: Keith Smith | last post by:
I am making a program that needs to put a copy of a certain small image wherever the user clicks with the mouse. I am using a pictureBox as my main area (although I can change this if necessary). ...
1
by: cmac89 | last post by:
Dear Group, I wonder if anyone can help me with a little VB.NET picturebox problem? I want to let the user click on a map and where they click I want to draw a circle. I'm using the...
2
by: Shane Stewart | last post by:
I've created a user control inheriting a picturebox. I want to set a non-rectangular area to the current system color.control. I'm looking for either a "fill" command that will set all contiguous...
3
by: R Leedy | last post by:
I'm using a picturebox control to view .tif files in a directory. Some of these files have a second page. Is there any way to view the other pages in this instance?
6
by: Rich | last post by:
Hello, I want to simulate the dynamic thumbnail display of Windows Explorer (winxp) on a form or pannel container. If I place a picture box on my container form/pannel and dimension it to the...
2
by: Ryan | last post by:
I have a very basic form that has controls bound to a SQL 2005 database for an Employee Directory. I'm using a PictureBox control to bind to the "Photo" field which is of datatype image. However,...
2
by: Frank | last post by:
For various reasons I want to use a PictureBox to display images. That is I want sometimes to assign an Image to the PictureBox Sometimes I want to draw on that Image. What are the reasons for...
1
by: ebiweb | last post by:
hi all, how can i control the position of vertical or horizontal scrollbals of a picture box. i load a picture in a picturebox , by default the vertical of scroll bar is at position 0 ; ...
3
by: kirk | last post by:
I have a form with a PictureBox control on it. The .Image property is set to a PNG file(which shows the picture of the US map) with some transparency in it. The .BackColor property is set to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.