While checking for the KeyDown event validation, it slows down the application and User can not type in the characters smoothly. I can't even user event filter as the keydown event has to be caught for some validation on all the forms of User tables. is there any work around?
thanks and regards,
is the KeyDown-Event itself (without your validations) the reason for slowing the appl. or is your validation-code the reason?
I have no problems when using the key-down- event for an "automatic-capital-letter"-function in a MTX-column (for example):
If pVal.EventType = SAPbouiCOM.BoEventTypes.et_KEY_DOWN Then
If pVal.BeforeAction And pVal.ColUID = "2" Then
If pVal.CharPressed >= 97 And pVal.CharPressed <= 122 Then
'=> 65 - 90
SboCon.SboUI.SendKeys(Chr(pVal.CharPressed - 32))
BubbleEvent = False
Did you completly deactivate your event-filters for all events?
I always use event-filters. When a particular event is needed on all AddOn-forms then I add all the forms to this particular event-filter.
If the validation code is the reason for slowing down I agree with Geetha Sriram. I would also use LostFocus- or Validate-event to check the whole string.
(Validate is also fired when the user has typed a value without leaving the field and presses Add/Update - calculations in a MTX-row can be done here before Add/Update happens.