473,404 Members | 2,187 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,404 software developers and data experts.

Winform Events

Morning...

I'm looking for a good way to know when the mouse has left a specified panel
and/or form. I would normally wire in to the mouseleave event, but that
fires if I mouseover a control within the panel/form.

How has people solved this problem in the past? Do I have to get the mouse
position, compare it to the position of the form/panel and see if it is
within the boundaries? Sounds cluegy to me...
Dec 7 '05 #1
2 1473
Hi Jason,

As far as I know, this is by design. Windows will send message when the
mouse leaves the pannel and enters the button in the panel. I think you
have to handle the mousemove event and check for mouse positions to get
this done. HTH.

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

Dec 8 '05 #2
Check the cursor position and see if it's within the form's client
rectangle... If it is, you're over a child... oh wait, the bottom part
of your mail states this ;)

Jason wrote:
Morning...

I'm looking for a good way to know when the mouse has left a specified panel
and/or form. I would normally wire in to the mouseleave event, but that
fires if I mouseover a control within the panel/form.

How has people solved this problem in the past? Do I have to get the mouse
position, compare it to the position of the form/panel and see if it is
within the boundaries? Sounds cluegy to me...

Dec 8 '05 #3

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

Similar topics

2
by: Michael Huslig | last post by:
I have a C++.net user control which has two winform timers in it. When the 'poll' timer ticks, it stops itself, sends out a poll, and starts a 'retry' timer. When the response to the poll (or an...
1
by: Yongseung Kim | last post by:
Hi, I would like to describe as clear as I can(sorry my english is quite limited) 1. I made a project with vb.net on english XP Pro (The project has a winform with several general controls...
1
by: Will | last post by:
Not sure the easiest way to ask this so I will give a small example of what I want to accomplish. Create a VB.Net WinForm Application with two forms. On the first form, two textboxes and a...
3
by: Elliot Rodriguez | last post by:
Hi: I am writing a WinForm app that contains a DataGrid control and a StatusBar control. My goal is to update the status bar using events from a separate class, as well as some other simple...
8
by: Sunil Menon | last post by:
Dear All, We are developing applications in ASP.Net...in one of our applications we would like to use a GridControl...we have tried to use a Server-Side Grid control but found the speed to be an...
3
by: Venkat Venkataramanan | last post by:
Hello: I have a winform that has a private subroutine defined as: Private Sub ApplyFilter() This sub refers to objects that get instantiated in the winform's new method. However, when I...
5
by: Marc Robitaille | last post by:
Hello, Is there better a way of finding a control on WinForm than to use a recursive method on the controls collection property? I ask this question because I have winforms which have many...
5
by: fei.liu | last post by:
Hello, in the application I am developing, I am having trouble to synchronize event triggered actions using 'lock(ob){...};' technique. Here is a outline of my code: class C{ int x = 0; public...
3
by: Jose Fernandez | last post by:
Hello. I would like to know how could i get all the subscriptions that my form has with the events of their controls. For example. I have a form with a textbox, a button and a dropdown. I...
2
by: jyanmin.fang | last post by:
Hi, In my current project, I need to embed an .NET winform usercontrol in the aspx page (via <Objecttag). This winform usercontrol has an event called DoEvent (void DoEvent()). This winform...
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?
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
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.