<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Setting Focus on Field</title><link>https://www.infopathdev.com:443/forums/thread/4106.aspx</link><pubDate>Thu, 22 Feb 2007 02:33:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4106</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4106.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=4106</wfw:commentRss><description>What type of control is bound to the field? Never mind -- I see above you said it was a check box. This is the problem. Only certain controls can be selected. A check box is unfortunately not one of them.</description></item><item><title>Re: Setting Focus on Field</title><link>https://www.infopathdev.com:443/forums/thread/4105.aspx</link><pubDate>Thu, 22 Feb 2007 01:06:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4105</guid><dc:creator>Bill </dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4105.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=4105</wfw:commentRss><description>Yes:&lt;br /&gt;&lt;br /&gt;It is a live field on the form.  Do you have any ideas?&lt;br /&gt;&lt;br /&gt;Bill</description></item><item><title>Re: Setting Focus on Field</title><link>https://www.infopathdev.com:443/forums/thread/4104.aspx</link><pubDate>Wed, 21 Feb 2007 22:20:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4104</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4104.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=4104</wfw:commentRss><description>Was the field visible, and not read-only before the afterUpdate event?</description></item><item><title>Setting Focus on Field</title><link>https://www.infopathdev.com:443/forums/thread/1867.aspx</link><pubDate>Wed, 21 Feb 2007 20:23:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:1867</guid><dc:creator>Bill </dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/1867.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=1867</wfw:commentRss><description>Hello,&lt;br /&gt;&lt;br /&gt;I have been searching the forums on how to set the focus to a field.  I used the code provided in some of the responses but I am still having an issue when attempting to set the focus to a check box: I run this code (written in VB) in an afterUpdate event:&lt;br /&gt;&lt;br /&gt;Dim objectField1 = e.Xdocument.DOM.selectsingleNode("/dfs:myFields/dfs:datafields/d:AForm49B/@Gender")&lt;br /&gt;&lt;br /&gt;e.xDocument.View.SelectText(objField1, Type.Missing)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;and I receive this error:&lt;br /&gt;&lt;br /&gt;The specified values for the View.SelectText call are not valid.&lt;br /&gt;at Microsoft.Office.Interop.InfoPath.SemiTrust.View.SelectText(IXMLDOMNode pxnField, Object varViewContext)&lt;br /&gt;at Microsoft.Office.Interop.InfoPath.SemiTrust.ViewObjectWrapper.SelectText(IXMLDOMNode pxnField, Object varViewContext)&lt;br /&gt;at DHS49B.DHS49B.CTRL7_OnClick(DocActionEvent e) in E:\goldmine\GMForms\DHS49Forms\DHS49Forms\DHS49B\DHS49B\FormCode.vb:line 752&lt;br /&gt;at Microsoft.Office.Interop.InfoPath.SemiTrust._ButtonEventSink_SinkHelper.OnClick(DocActionEvent pEvent)&lt;br /&gt;&lt;br /&gt;Can anyone tell me what I am doing wrong?&lt;br /&gt;&lt;br /&gt;Thanks!&lt;br /&gt;&lt;br /&gt;Bill</description></item></channel></rss>