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

Vista not recognizing MouseLeave, MouseUp

I have an C# .NET 2.0 application which runs fine on XP, but on Vista
(Home Basic), the MouseUp event does not fire until i move the mouse
over another control/button in the application. The same thing happens
for the MouseLeave events. They do not fire until the mouse enters a
different control.

This would seem to be a huge problem, but i did not see much online
about it.

Does anyone know what could be causing this?
Nov 15 '08 #1
3 2807
Can't help without seeing your code, but these work fine for me on Vista.
By the way, the MouseLeave should happen as you described. The MouseLeave
event happens (in the form) when the mouse goes from the form to a control.
I have a feeling you are not describing the action or expectation correctly.

<ro*********@gmail.comwrote in message
news:94**********************************@a29g2000 pra.googlegroups.com...
>I have an C# .NET 2.0 application which runs fine on XP, but on Vista
(Home Basic), the MouseUp event does not fire until i move the mouse
over another control/button in the application. The same thing happens
for the MouseLeave events. They do not fire until the mouse enters a
different control.

This would seem to be a huge problem, but i did not see much online
about it.

Does anyone know what could be causing this?
Nov 15 '08 #2
On Nov 15, 8:01*am, "Family Tree Mike"
<FamilyTreeM...@ThisOldHouse.comwrote:
Can't help without seeing your code, but these work fine for me on Vista.
By the way, the MouseLeave should happen as you described. *The MouseLeave
event happens (in the form) when the mouse goes from the form to a control.
I have a feeling you are not describing the action or expectation correctly.
The code shouldn't matter in this case, as all my controls are
affected by this problem. I'm taking about both native and 3rd party
controls are showing erratic behavior in Vista while there is no
problem whatsoever in XP.

For example, i have a MouseLeave() event in a foreground form that
causes the form to become semi transparent when the mouse leaves the
form bounds. This does not happen in Vista until I move the mouse into
a second foreground form at which point the first foreground form
proceses the MouseLeave() code.

Its as if the MouseEnter, MouseHover, and MouseDown events fire
normally, but MouseLeave and MouseUp do not fire until MouseEnter/
Hover is called on a different control.
Nov 15 '08 #3
I made a form1 that contains the following for mouseenter and mouseleave:

void Form1_MouseEnter(object sender, EventArgs e)
{
OtherForm.Opacity = 0.5;
this.Opacity = 1.0;
}
void Form1_MouseLeave(object sender, EventArgs e)
{
this.Opacity = 0.5;
OtherForm.Opacity = 1.0;
}

OtherForm is just an instance of another form that is shown. As I move out
of or into form1, the opacity switches as expected. I don't need to move
into form two to get the event propogated.

Perhaps a key difference is that I am building and running on Vista. I used
VS 2008 targeting .Net 2.0.
<ro*********@gmail.comwrote in message
news:9f**********************************@d42g2000 prb.googlegroups.com...
On Nov 15, 8:01 am, "Family Tree Mike"
<FamilyTreeM...@ThisOldHouse.comwrote:
Can't help without seeing your code, but these work fine for me on Vista.
By the way, the MouseLeave should happen as you described. The MouseLeave
event happens (in the form) when the mouse goes from the form to a
control.
I have a feeling you are not describing the action or expectation
correctly.
The code shouldn't matter in this case, as all my controls are
affected by this problem. I'm taking about both native and 3rd party
controls are showing erratic behavior in Vista while there is no
problem whatsoever in XP.

For example, i have a MouseLeave() event in a foreground form that
causes the form to become semi transparent when the mouse leaves the
form bounds. This does not happen in Vista until I move the mouse into
a second foreground form at which point the first foreground form
proceses the MouseLeave() code.

Its as if the MouseEnter, MouseHover, and MouseDown events fire
normally, but MouseLeave and MouseUp do not fire until MouseEnter/
Hover is called on a different control.

Nov 16 '08 #4

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

Similar topics

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...
0
by: A. Reza Bemanian | last post by:
Using both MouseHover and MouseLeave events for a group of buttons within a CLI WinForm application, the MouseLeave event misfires although the mouse cursor has not moved on the screen, and is set...
3
by: M O J O | last post by:
Hi, I have a panel on my form. I want to detect when the user enters my panel with his mouse and when he leaves my panel. If the user hovers a control inside my panel, I get the mouseleave,...
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...
1
by: Huahe | last post by:
Hi, I have an checkedlistbox with a lot of items, so there is a vertical scrollbar in the checkedlistbox. I want to make the checkedlistbox invisible when the mouseleave event goes off. The...
2
by: dave.wayne | last post by:
In a web page I have a div tag that has a onlick event registered through the event listener. However, that same div tag also has a onmousedown - start a drag and drop script The problem I am...
3
by: Techsatish | last post by:
how to make a mouseup event called only once during a double click event? here double click is made on a tree node in a tree control. I have the code inside mouseup event....in runtime the...
2
by: J. W. T. Kottekoe | last post by:
I have encountered a bug that I can reproduce in a simple test application that is constructed entirely in the designer within Visual Studio 2005, with not one line of code written by me. Briefly,...
12
by: Tom Bean | last post by:
I am trying to display a ContextMenuStrip when a user right-clicks on an item in a ListView and have encountered a something that seems strange to me. When the ListView is initially populated,...
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
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: 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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...

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.