find last control in mdi application

hamid

Centurion
Joined
Jul 13, 2004
Messages
114
in my mdi application i have some forms and i set define KeyDown event for my mainform that when user press Alt+c my calculator form come up.
i want that if user focused on a textbox in a form and press Alt+c my caculator find its textbox value and get its value.
it's meen that i want found last control after Alt+c pressed.
thanks
 
You can always get the current form by using the ActiveForm property of the MDI container. Also you can get the current control via the ActiveControl property of a form.
 
You can always get the current form by using the ActiveForm property of the MDI container.
i can't find this property in my MDI form properties?!
this. (and there isn't this propertie here)
 
Back
Top