473,320 Members | 1,920 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,320 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 1588
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,...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
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...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.