I Ignacio Machin \( .NET/ C# MVP \) Aug 9, 2005 #2 Hi, You can get the active form of the app using Form.ActiveForm cheers,
O Octavio Hernandez Aug 9, 2005 #3 Tom, Check http://msdn.microsoft.com/library/d...ystemwindowsformsformclassactiveformtopic.asp Regards - Octavio
Tom, Check http://msdn.microsoft.com/library/d...ystemwindowsformsformclassactiveformtopic.asp Regards - Octavio
M Matt Aug 9, 2005 #4 Tom said: How to obtain information if the current form is now focused? Click to expand... I'm not entirely sure what you are asking. If you mean when a form is FIRST brought up, Form_Load will do that. If you mean when a form becomes visible for whatever reason, the VisibleChanged event will be fired. Another alternative is the Enter event, which will be fired when the mouse enters the form area. Matt
Tom said: How to obtain information if the current form is now focused? Click to expand... I'm not entirely sure what you are asking. If you mean when a form is FIRST brought up, Form_Load will do that. If you mean when a form becomes visible for whatever reason, the VisibleChanged event will be fired. Another alternative is the Enter event, which will be fired when the mouse enters the form area. Matt
G Guest Aug 9, 2005 #5 You could subscribe to the GotFocus event which will be fired when form receives focus. However, the MSDN documentation suggests using the Activated event instead. Hope this helps. Brian Delahunty Ireland http://briandela.com/blog
You could subscribe to the GotFocus event which will be fired when form receives focus. However, the MSDN documentation suggests using the Activated event instead. Hope this helps. Brian Delahunty Ireland http://briandela.com/blog