X
xargon
Hi everyone,
I am trying to handle the keypress event in the Visio document. But it
somehow does not match the procedure declaration. Always comes up with the
error:
"Procedure declaration does not match description of event or procedure
having the same name."
The code I have used is as follows:
Private Sub m_vsoWindow_KeyPress(ByVal KeyAscii As MSForms.ReturnInteger)
If KeyAscii = KeyCodeConstants.vbKeyControl Then
KeyAscii = 0
End If
End Sub
The m_vsoWindow variable is initialized to ActiveWindow.
I have used something similar for the MouseDown event and that works
fine!
Thanks!
Cheers!
Pankaj
I am trying to handle the keypress event in the Visio document. But it
somehow does not match the procedure declaration. Always comes up with the
error:
"Procedure declaration does not match description of event or procedure
having the same name."
The code I have used is as follows:
Private Sub m_vsoWindow_KeyPress(ByVal KeyAscii As MSForms.ReturnInteger)
If KeyAscii = KeyCodeConstants.vbKeyControl Then
KeyAscii = 0
End If
End Sub
The m_vsoWindow variable is initialized to ActiveWindow.
I have used something similar for the MouseDown event and that works
fine!
Thanks!
Cheers!
Pankaj