如何识别应用程序屏幕的对象 [英] how to identify the objects of an apllication screen

查看:84
本文介绍了如何识别应用程序屏幕的对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

先生,

i只想知道如何识别应用程序屏幕中出现的对象。

这些可能包括文本框,按钮等等on。

请告诉算法。

问候

Sir,
i just want to know how to identify the objects that are present in the screen of an application.
These may include a text box,button and so on.
Please tell the algorithm for it.
Regards

推荐答案

For Each oControl As Control In Me.Controls
    If TypeOf oControl Is TextBox Then
        ' Do Something
    End If
Next







foreach (Control oControl in this.Controls) {
	if (oControl is TextBox) {
		// Do Something
	}
}


这篇关于如何识别应用程序屏幕的对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆