我正在学习在C#中使用自动化UI。但问题是,我无法正确识别旁边的应用程序中的文本框。 我使用以下条件,以确定一个文本框: string name = "textBox1";
Condition c = new PropertyCondition(AutomationElement.AutomationIdProperty, name);
,如果你知道文本框的确切名称,它工作正常的情况下,但你
我有一个非常通用的登录表单,它允许用户访问应用程序。我的问题是在加载应用程序表单后,让表单中的日志关闭。我已经在代码的评论中描述了具体细节。任何帮助将不胜感激。 Public Class frmUserLogin
Inherits System.Windows.Forms.Form
Private pass As String
Private username As String
Pri