FancyPrairie
Programmer
At runtime I would like to set the OnKeyDown property of a combobox to a predefined function. I know I can set it at design time, but I need to set it at runtime, but I'm not sure of the syntax. Note that the OnKeyDown event is expecting 2 values (KeyCode and Shift). I tried to set it to this with limited results
My code would look like this:
This sort of works, but how do i code it so that it will receive the 2 arguments (KeyCode and Shift)?
Code:
cbo.OnKeyDown = eval("ComboBox_OnKeyDown()")
My code would look like this:
Code:
Function ComboBox_OnKeyDown()
blah blah blah
End function
This sort of works, but how do i code it so that it will receive the 2 arguments (KeyCode and Shift)?