点网设备应用程序可以写在任何焦点上 [英] dot net device application to write on any focus

查看:58
本文介绍了点网设备应用程序可以写在任何焦点上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用MC75,正在从串行端口读取护照数据并将其保存在本地.应用程序的这一部分已经完成.现在,我想从串行端口读取MRZ数据,并在屏幕上的焦点位置书写,无论是记事本还是任何文本控件.请帮忙.


问候
Aishwarya Goyal

I am working on MC75.I am reading passport data from serial port and saving it locally. This part of application is done.Now i want to read the MRZ data from serial port and write where ever the focus is on screen,, whether it be notepad or any text control.Please help.


Regards
Aishwarya Goyal

推荐答案

两个选项:
1)使用 SendKeys [
Two options:
1) Use SendKeys[^] to send the data to the focussed control.
2) Find the focussed control using the ActiveControl property, and set the Text property appropriately, if it has one. THis would be a better solution, as otherwise your data could end up sent to a button...


这篇关于点网设备应用程序可以写在任何焦点上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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