Article ID: 118645
Article Last Modified on 12/9/2003
Sub Form_MouseDown (Button As Integer, Shift As Integer, X As Single, Y As Single)Sometimes, you may want to call one of these event procedures from the application code itself. However this possible only if no parameters have to be passed, because these are totally dependent on the state of the system as Windows fires these events.
Sub cmdEventFire_Click ()
Call Form_Click
End Sub
NOTE: This code could be a call to any Form event or procedure that does
not require parameters.
Sub Form_DblClick ()
Form2.cmdEventFire = True
End Sub
As a result, cmdEventFire's click event is called, which in turn calls
l the event procedure of our choice on Form2 (in this case,
Form_Click).
Sub Form_Click ()
MsgBox "Form2_Click was called without clicking on Form2."
End SubAdditional query words: 2.00 3.00
Keywords: KB118645