Search - InfoPath Dev Sign in | Join | Help InfoPath Dev InfoPath Dev is dedicated to bringing you the information and tools you need to be successful in your Microsoft Office InfoPath development projects. Home Blogs Forums Photos Downloads Search More Search Options Page 1 of 1 (6 items) Re: How to do focus on field? Hi, problem solved. My text box was read only, and so the function didn't work properly. Thanks Posted to General (Forum) by mcjack on 09-23-2005 Re: Button OnClick Event Hi all, I've found the problem. here the solution: the textbox mustn't be read only. Regards Posted to General (Forum) by mcjack on 09-23-2005 Re: Button OnClick Event Hi, here is my code (C#.net): public void CTRL81_5_OnClick(DocActionEvent e) { // Write your code here. IXMLDOMNode nodeAna = thisXDocument.DOM.selectSingleNode (''my:myFields/my:DatiAnagrafici/my:DatiAnagraficiLab''); thisXDocument.View.SelectText(nodeAna, Type.Missing); } and this the error I ... Posted to General (Forum) by mcjack on 09-22-2005 Re: Button OnClick Event Hi, I've this problem: the function View.SelectText requires two parameters a node and a varViewContext which is the ID of the control that is used for the context, which is an element with the specified view context of xd:CtrlId, otherwise it gives me an error. Posted to General (Forum) by mcjack on 09-21-2005 Re: How to do focus on field? I've used Type.Missing, but I get an error. Can you help me? Thanks and regards Posted to General (Forum) by mcjack on 09-21-2005 Button OnClick Event Hi all, I need to move focus to a textBox on button click event using c#. Thanks. mcjack Posted to General (Forum) by mcjack on 09-21-2005 Page 1 of 1 (6 items) Copyright © 2003-2019 Qdabra Software. All rights reserved.View our Terms of Use.