473,387 Members | 1,579 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,387 software developers and data experts.

mousemove/mouseenter/etc problems

i posted this a while ago and never got a response, but i'm still having
problems, so i thought i'd see if anyone had any sudden realizations this
time
Thanks in advance!

Tim
I have written some code that causes mouseover effects on a picture box.
The code works fine most of the time and creates some really nice effects.

HOWEVER,
If i try, i can get the effects to not disappear (as if the MouseLeave event
isn't firing) or i can get the effects to not appear in the first place (as
if the MouseEnter/MouseMove events aren't firing).
More or less i can do this by just moving the mouse slowly into the
picturebox and slowly out of the picturebox.
I'm just handling this events and, in two or three lines of code, setting
properties of the picturebox.
Is there something else i need to be doing?

Thanks,
Tim

P.S. I've written code to handle the MouseMove event for the form the
picturebox is contained in, and this seems to mostly fix the problem of the
MouseLeave event not firing, but thats kinda a hack, not a true fix. And it
doesn't fix the other problem either.
Nov 15 '05 #1
3 7409
If that's just two or three lines of code why don't you post it here. Doing
so may help....

"Tim Mulholland" <ti*@eyeresponse.com> wrote in message
news:uj**************@TK2MSFTNGP10.phx.gbl...
i posted this a while ago and never got a response, but i'm still having
problems, so i thought i'd see if anyone had any sudden realizations this
time
Thanks in advance!

Tim
I have written some code that causes mouseover effects on a picture box.
The code works fine most of the time and creates some really nice effects.

HOWEVER,
If i try, i can get the effects to not disappear (as if the MouseLeave event isn't firing) or i can get the effects to not appear in the first place (as if the MouseEnter/MouseMove events aren't firing).
More or less i can do this by just moving the mouse slowly into the
picturebox and slowly out of the picturebox.
I'm just handling this events and, in two or three lines of code, setting
properties of the picturebox.
Is there something else i need to be doing?

Thanks,
Tim

P.S. I've written code to handle the MouseMove event for the form the
picturebox is contained in, and this seems to mostly fix the problem of the MouseLeave event not firing, but thats kinda a hack, not a true fix. And it doesn't fix the other problem either.

Nov 15 '05 #2
Tim,

Maybe forcing a refresh/redraw of the pictureBox via Update() will do the
trick. If you are not sure if your event is fired, try setting a breakpoint
in the event handler (or add a Message.Show("Inside MouseLeave") to your
handler code).

Good Luck,
Stephan

"Tim Mulholland" <ti*@eyeresponse.com> wrote in message
news:uj**************@TK2MSFTNGP10.phx.gbl...
i posted this a while ago and never got a response, but i'm still having
problems, so i thought i'd see if anyone had any sudden realizations this
time
Thanks in advance!

Tim
I have written some code that causes mouseover effects on a picture box.
The code works fine most of the time and creates some really nice effects.

HOWEVER,
If i try, i can get the effects to not disappear (as if the MouseLeave event isn't firing) or i can get the effects to not appear in the first place (as if the MouseEnter/MouseMove events aren't firing).
More or less i can do this by just moving the mouse slowly into the
picturebox and slowly out of the picturebox.
I'm just handling this events and, in two or three lines of code, setting
properties of the picturebox.
Is there something else i need to be doing?

Thanks,
Tim

P.S. I've written code to handle the MouseMove event for the form the
picturebox is contained in, and this seems to mostly fix the problem of the MouseLeave event not firing, but thats kinda a hack, not a true fix. And it doesn't fix the other problem either.

Nov 15 '05 #3
I'm positive that the events are NOT firing if i try to "trick" it.
If i just move the mouse slowly off the object (or sometimes if i do it
quickly), the MouseLeave event is never fired.
So i'm having to catch the MouseEnter/MouseMove events of the objects
surrounding my pictureboxes and forcing a clear of the picture box.
It just seems like i should have to do that.
Unless someone comes up with something by the morning, i'll post some code
so yall can test what i'm talking about.
Thanks for your help so far people, i appreciate it.

Tim

"Stephan Kabisius" <ka******@yahoo.com> wrote in message
news:ua**************@tk2msftngp13.phx.gbl...
Sorry, that was supposed to be 'MessageBox.Show("Inside MouseLeave")'.

Stephan

"Stephan Kabisius" <ka******@yahoo.com> wrote in message
news:%2*****************@TK2MSFTNGP11.phx.gbl...
Tim,

Maybe forcing a refresh/redraw of the pictureBox via Update() will do the
trick. If you are not sure if your event is fired, try setting a

breakpoint
in the event handler (or add a Message.Show("Inside MouseLeave") to your
handler code).

Good Luck,
Stephan

"Tim Mulholland" <ti*@eyeresponse.com> wrote in message
news:uj**************@TK2MSFTNGP10.phx.gbl...
i posted this a while ago and never got a response, but i'm still having problems, so i thought i'd see if anyone had any sudden realizations this time
Thanks in advance!

Tim
I have written some code that causes mouseover effects on a picture box. The code works fine most of the time and creates some really nice effects.
HOWEVER,
If i try, i can get the effects to not disappear (as if the MouseLeave

event
isn't firing) or i can get the effects to not appear in the first
place (as
if the MouseEnter/MouseMove events aren't firing).
More or less i can do this by just moving the mouse slowly into the
picturebox and slowly out of the picturebox.
I'm just handling this events and, in two or three lines of code, setting properties of the picturebox.
Is there something else i need to be doing?

Thanks,
Tim

P.S. I've written code to handle the MouseMove event for the form the
picturebox is contained in, and this seems to mostly fix the problem

of the
MouseLeave event not firing, but thats kinda a hack, not a true fix.
And it
doesn't fix the other problem either.



Nov 15 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Tim Mulholland | last post by:
I have written some code that causes mouseover effects on a picture box. The code works fine most of the time and creates some really nice effects. HOWEVER, If i try, i can get the effects to...
1
by: SeaNICK | last post by:
I am trying to figure out how to use MouseEnter or MouseLeave events, and be able to use the EventArgs to determine where the mouse cursor is. To my great confusion, the MouseEnter and MouseLeave...
0
by: Machi | last post by:
I am using C#.NET. API version showintaskbar form Window taskbar hide show not fire events MouseLeave and MouseEnter! Now i am facing a critical problem for MouseLeave and MouseEnter event when i...
3
by: Crucifix | last post by:
Hello, I'm writing a small C# app, and part of what I'm trying to do involves the dragging of PictureBox controls on a form. Unfortunately, MouseMove seems to be behaving very oddly, causing...
0
by: Pucara | last post by:
Hi all, I have noticed that the picturebox object doesnt' fire correctly the mouseEnter mouseLeave events. The problem is seen ONLY when you show a form more than once. You can reproduce it...
3
by: JohnR | last post by:
I have a form with a number of text boxes, comboboxes etc. What I would like to do is create an event handler for the "mouseenter" event for each of the controls whereby I display information...
7
by: =?Utf-8?B?Qm9iQWNoZ2lsbA==?= | last post by:
I need to programmatically add an invisible control to my form that will enable me to trigger MouseEnter and MouseLeave code relative to the control area. Is this possible to add the control and...
1
by: Just Me | last post by:
Hi Guys Again, I know this isnt an IE group, but this is where the experts are and I am working on an asp,net project. In this scenario im working ont the client javascript handling tables...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...

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.