A better question is what will fire this event? Do you want a timer or the user presses a button to start the process? Or is this something outside the actual program....
If it is within the program such as a button press, or a timer, one doesn't have to actually send the event, just call the OnFocus( ) method directly and place nulls/nothings into the arguments. Unless of course the arguments are used by the method then fill them in appropriately.
Note if it is in a timer and one is doing screen updates, it is better to invoke a method which will then subsequently call the OnFocus, if screen painting is done. Any such GUI operations have to occur on the main thread.
|