Hey Guys,
I have a problem. I need to call event handler of buttons placed
on a form on its keypress event. The Problem is i need to read a file
which includes the button name whose click event is to be called and
the KEY whose press event whould trigger the respective button's click
event. e.g. The Mapper.txt file contains these values like :
btnSubmit S
btnCancel X
btnReset M
Here this file means that if "S" is pressed on the form it should
trigger the click event of btnSubmit OR
if "X" is pressed on the form it should trigger the click event of
btnCancel.
Can this be done without using "if else" conditions, because the
"Mapper.txt" file can be changed by user.
Hope u understood the problem.
Thanks,
Nitin Agarwal.