简体   繁体   English

我如何获取当前集中在信息路径中的表单?

[英]How can i get the current form which has the focus in infopath?

I have to get the currently focussed control in infopath. 我必须在infopath中获得当前关注的控件。 I only found "objects" via xmlPathNavigator, but with this i can not check if an element has the focus. 我只能通过xmlPathNavigator找到“对象”,但是与此同时我无法检查元素是否具有焦点。

Thanks 谢谢

Your best bet is ContextChanged event - http://msdn.microsoft.com/en-us/library/microsoft.office.infopath.formevents.contextchanged.aspx . 最好的选择是ContextChanged事件-http: //msdn.microsoft.com/zh-cn/library/microsoft.office.infopath.formevents.contextchanged.aspx There is no direct access to controls in InfoPath. 没有直接访问InfoPath中的控件的权限。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM