自动化VB表单控件 [英] Automate VB Form Controls
本文介绍了自动化VB表单控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
请告诉我如何在C#应用程序中自动执行VB控件(如按钮,网格,表格)中的外部VB应用程序。
我不想使用SendKeys。
问候,
Nikesh
Hi,
Please let me know how can i automate VB Controls like Buttons , Grids , Tables in an external VB Application from my C# Application.
I dont want to use SendKeys for this.
Regards,
Nikesh
推荐答案
当然,使用SendKeys
是件坏事,不建议用于UI开发。
相反,您可以了解System.Windows.Forms
自动化。请从这篇文章开始: http://msdn.microsoft.com/en-us/library/ms996405。 aspx [ ^ ]。
祝你好运,
-SA
Of course, usingSendKeys
is a bad thing and is not recommended for UI development anyway.
Instead, you can learn aboutSystem.Windows.Forms
automation. Please start with this article: http://msdn.microsoft.com/en-us/library/ms996405.aspx[^].
Good luck,
—SA
如果你不喜欢我想使用SendKeys,那么你想要控制的任何应用都必须有一个你可以使用的SDK或API。
If you don't want to use SendKeys then whatever app you are trying to control will have to have an SDK or API that you could use.
这篇关于自动化VB表单控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文