Click here to Skip to main content
15,905,913 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: .Net remoting Pin
jschell16-Apr-11 11:08
jschell16-Apr-11 11:08 
GeneralRe: .Net remoting Pin
jschell16-Apr-11 11:28
jschell16-Apr-11 11:28 
QuestionInitialize Textblock after changing Inlines [modified] Pin
Defender-NF11-Apr-11 10:52
Defender-NF11-Apr-11 10:52 
QuestionChanging the database of a typed DataSet after generation Pin
Jean-Louis Leroy6-Apr-11 22:54
Jean-Louis Leroy6-Apr-11 22:54 
AnswerRe: Changing the database of a typed DataSet after generation Pin
Dave Kreskowiak7-Apr-11 2:06
mveDave Kreskowiak7-Apr-11 2:06 
QuestionSystem.io equivalent of java.io.FileOutputStream Pin
codeproj_priya5-Apr-11 23:44
codeproj_priya5-Apr-11 23:44 
AnswerRe: System.io equivalent of java.io.FileOutputStream Pin
Pete O'Hanlon5-Apr-11 23:53
mvePete O'Hanlon5-Apr-11 23:53 
QuestionForm MouseLeave event [modified] Pin
TyrionTheImp5-Apr-11 20:06
TyrionTheImp5-Apr-11 20:06 
Hi All,

I have 2 main Form classes - ParentForm and ChildForm in the same exe.
ChildForm has a bunch of numeric up-down controls on it.

I create an instance of ChildForm, set TopLevel = true and do SetParent with
the ParentForm as the parent handle (doing this enables the non client area of
ChildForm to stay highlighted when its selected).
Now the problem is I need to know when the mouse has left the ChildForm entirely.

The Leave event for the ChildForm is never fired.

If we listen to the MouseLeave event it gets fired if the mouse hovers
over any of the numeric controls and also when the mouse goes to the parent form. Is there any way I can differentiate between these 2 cases ?
Also note that we need to cover the case where some other external application
(say notepad or Task Manager with always on top as true) is positioned exactly above the child form and is clicked

EDIT UPDATE : Thanks to all for the replies ! Have asked the same question on the MSDN Forums - http://social.msdn.microsoft.com/Forums/en-US/winforms/thread/51e040a5-77f9-4b43-a462-1b5e3a13b90a/?prof=required[^]

TIA
modified on Monday, April 11, 2011 12:00 PM

AnswerRe: Form MouseLeave event Pin
RobCroll5-Apr-11 22:53
RobCroll5-Apr-11 22:53 
GeneralRe: Form MouseLeave event Pin
TyrionTheImp5-Apr-11 23:17
TyrionTheImp5-Apr-11 23:17 
AnswerRe: Form MouseLeave event Pin
Luc Pattyn5-Apr-11 23:56
sitebuilderLuc Pattyn5-Apr-11 23:56 
GeneralRe: Form MouseLeave event Pin
TyrionTheImp11-Apr-11 5:52
TyrionTheImp11-Apr-11 5:52 
GeneralRe: Form MouseLeave event Pin
RobCroll6-Apr-11 17:36
RobCroll6-Apr-11 17:36 
GeneralRe: Form MouseLeave event Pin
TyrionTheImp11-Apr-11 5:58
TyrionTheImp11-Apr-11 5:58 
AnswerRe: Form MouseLeave event Pin
Ravi Bhavnani8-Apr-11 9:43
professionalRavi Bhavnani8-Apr-11 9:43 
GeneralRe: Form MouseLeave event Pin
TyrionTheImp11-Apr-11 6:00
TyrionTheImp11-Apr-11 6:00 
Questioncode Pin
dhruty4-Apr-11 20:49
dhruty4-Apr-11 20:49 
AnswerRe: code Pin
Pete O'Hanlon4-Apr-11 20:50
mvePete O'Hanlon4-Apr-11 20:50 
AnswerRe: code Pin
Abhinav S4-Apr-11 22:07
Abhinav S4-Apr-11 22:07 
AnswerRe: code Pin
dan!sh 4-Apr-11 22:33
professional dan!sh 4-Apr-11 22:33 
AnswerRe: code Pin
Ravi Bhavnani5-Apr-11 9:35
professionalRavi Bhavnani5-Apr-11 9:35 
AnswerRe: code Pin
Prasanta_Prince15-Apr-11 0:05
Prasanta_Prince15-Apr-11 0:05 
QuestionIPC in WPF Pin
Pranit Kothari4-Apr-11 0:50
Pranit Kothari4-Apr-11 0:50 
AnswerRe: IPC in WPF Pin
Pete O'Hanlon4-Apr-11 1:13
mvePete O'Hanlon4-Apr-11 1:13 
AnswerRe: IPC in WPF Pin
Luc Pattyn4-Apr-11 1:15
sitebuilderLuc Pattyn4-Apr-11 1:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.