thirteentwenty
Well-known member
I'm not sure if I'm posting this in the correct area, please move if need be...
OK, I've got this little bit of code that is _supposed_ to close the form its set in. Code to follow
It works OK on most forms, but when I put it into a form called frm_about it fails...
Mind you this is not a preselected "About Box", it's just a regular windows form that I've named frm_about...
any ideas?
Thanks for the assist...
OK, I've got this little bit of code that is _supposed_ to close the form its set in. Code to follow
It works OK on most forms, but when I put it into a form called frm_about it fails...
Mind you this is not a preselected "About Box", it's just a regular windows form that I've named frm_about...
any ideas?
VB.NET:
Protected Overrides Function ProcessDialogKey(ByVal keyData As System.Windows.Forms.Keys) As Boolean
Select Case keyData
Case Keys.Escape
Me.Close()
End Select
Return MyBase.ProcessDialogKey(keyData)
End Function
Thanks for the assist...