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

losing mouse_hover and mouse_leave events

Hello,
I am having a problem using Form.ShowDialog in C# (2003).
I display a form with ShowDialog and then close it, then re-display with
ShowDialog again. Note that I am not re-instantiating the form, I don't
dispose after closing the form. The form shows correctly both times BUT, I
don't get any mouse_hover or mouse_leave events after the close and re-show.
This is causing some problems with some 3rd party components I use
(specifically ChartFX and Syncfusion). I have uses SPY and hooked into the
message loop and it is definitely not firing mouse_leave or mouse_hover after
the close and re-show.

Has anybody experienced this issue and/or have a workaround?
Thanks,
Dan
Nov 22 '05 #1
4 1591
Hi Dan,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that when you hide and show dialog of a
form, some mouse events cannot be captured. If there is any
misunderstanding, please feel free to let me know.

Based on my research, this seems to be a known issue in current version of
.net framework. Button's Mouse Events do not get fired when the form is
showed by ShowDialog after the first time. It might also happen on some
other controls. This issue will be fixed in next version of .net framework.

Sorry for the inconvenience.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Nov 22 '05 #2
Thanks Kevin,
I look forward to the fix in .net 2.0

Dan

"Kevin Yu [MSFT]" wrote:
Hi Dan,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that when you hide and show dialog of a
form, some mouse events cannot be captured. If there is any
misunderstanding, please feel free to let me know.

Based on my research, this seems to be a known issue in current version of
.net framework. Button's Mouse Events do not get fired when the form is
showed by ShowDialog after the first time. It might also happen on some
other controls. This issue will be fixed in next version of .net framework.

Sorry for the inconvenience.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Nov 22 '05 #3
Hi Dan,

Thanks for sharing your experience with all the people here. If you have
any questions, please feel free to post them in the community.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Nov 22 '05 #4
does this also apply to label controls? i had the same thing happen (i
think) when capturing the mouse hover event over a label control (i
wanted to change the font of the label control to bold to make it
appear like a web link).

On Sat, 25 Sep 2004 02:11:57 GMT, v-****@online.microsoft.com (Kevin
Yu [MSFT]) wrote:
Hi Dan,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that when you hide and show dialog of a
form, some mouse events cannot be captured. If there is any
misunderstanding, please feel free to let me know.

Based on my research, this seems to be a known issue in current version of
net framework. Button's Mouse Events do not get fired when the form is
showed by ShowDialog after the first time. It might also happen on some
other controls. This issue will be fixed in next version of .net framework.

Sorry for the inconvenience.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."


Nov 22 '05 #5

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

Similar topics

4
by: DapperDanH | last post by:
Hello, I am having a problem using Form.ShowDialog in C# (2003). I display a form with ShowDialog and then close it, then re-display with ShowDialog again. Note that I am not re-instantiating...
32
by: Neil Ginsberg | last post by:
We're using SQL Server 7 with an Access 2000 MDB as a front end with ODBC linked tables. I recently created a new set of tables for the app, and users are complaining that unsaved data is being...
0
by: jake | last post by:
Without having to code the GotFocus and LostFocus events of every form, as I have many in my application, is there an easier way to capture the action when the user switches my application to...
2
by: Kevin Waite | last post by:
On many occasions (but without an obvious pattern), we (it's not just me!) encounter a problem with VS.Net losing event handlers for controls, e.g. the auto-generated this.button.click += new...
5
by: fbwhite | last post by:
I know this issue has been brought up many times, but I have tried many of the solutions to no avail. I wanted to give my specific case to see if someone could be of any help. We are using the...
1
by: gencode | last post by:
I seem to be losing session information randomaly, session data will be set back to nothing from time to tome, sometimes it is after less than a minute and sometimes it wont lose it at all. More...
1
by: Israel | last post by:
The problem: I want to know, definitively when a slider loses focus after a user has started sliding and hasn't released the mouse yet. It appears that this is captured with the WM_ACTIVATEAPP...
0
by: Ashish | last post by:
HI all, I have been battling with this problem with some time now, now iam out of ideas what to do basically iam planning a tab control in which page developers can define tab abd tabelements on...
0
by: John | last post by:
I am loading my controls dynamically into my asp.net page. When I click on a button on one of those user controls then page reloads and I need to reload the page based on what has happened in the...
0
by: =?Utf-8?B?Sm9obiBXLg==?= | last post by:
A client application connects to a TCP-remoted object from a service on localhost for method invocations and events. It works as advertised. But... if the network cable (LAN) gets disconnected,...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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?
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...

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.