H
This was the solution I passed in my earlier mail. The argument e of HandleChildKeyPress procedure can be used to detect which key user has pressed
Sooraj P
Microsoft India Community Sta
Add a handler to the Keypress event of the Child form in your mdi form when you declare and instantiate the child form
In MDI Form [VB]
Dim Child as Form = New Custome
AddHandler Child.KeyPress, AddressOf HandleChildKeyPres
Public Sub HandleChildKeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs
'Code for handling the Key press of child For
End Su
----- ClayB [Syncfusion] wrote: ----
I may be wrong, but I am not sure adding a handler will "trigger"
keypress
A handler will react to a key that is pressed by the user, but how do tell
handler to press the letter 'a', and have all the listeners to the KeyPres
event catch this action
If you want to 'fire' the KeyPress event so all listeners can catch it, the
I think you will need to somehow call the protected OnKeyPress method of th
class
=====================
Clay Burch, .NET MV
Visit
www.syncfusion.com for the coolest tool