Onkey Method
-
2012年4月11日 10:19Can anyone explain me the usage of
Microsoft.Office.Interop.Excel.Application.OnKey() method with sample code?
すべての返信
-
2012年4月11日 15:30
in VB.NET
Private Sub Form1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles MyBase.KeyDown If e.KeyCode = Keys.F2 Then Call Procedure() If e.KeyCode = Keys.F3 Then Text_box.Focus() End Sub
Oskar Shon, Office System MVP
Press
if Helpful; Answer when a problem solved- 編集済み VBAToolsMVP 2012年4月11日 15:31
-
2012年4月12日 4:27
I am using C# and the Microsoft.Office.Interop.Excel.Application.OnKey() method usage is what I need..
- 編集済み ams16 2012年4月12日 4:35
-
2012年4月13日 9:22モデレータ
Hi Ams16,
Thank you for posting.
Please take a look at this thread:
http://social.msdn.microsoft.com/Forums/en-US/vsto/thread/7b95e555-4bea-4815-8b4c-2d40093a3df6/
and this article on MSDN:
http://msdn.microsoft.com/en-us/library/ff197461.aspx
The OnKey method is used to execute the procedure.
Hope this can help you and just feel free to follow up after you have tried.
Best Regards,
Bruce Song [MSFT]
MSDN Community Support | Feedback to us

