<?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>Browser Forms</title><link>https://www.infopathdev.com:443/forums/40.aspx</link><description>For browser form specific questions</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Set focus on the contact selector "DisplayName" field</title><link>https://www.infopathdev.com:443/forums/thread/56785.aspx</link><pubDate>Tue, 13 Jul 2010 05:50:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:56785</guid><dc:creator>colacat</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/56785.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=56785</wfw:commentRss><description>&lt;p&gt;Correct&amp;nbsp; ...and it indeed works&amp;nbsp;when changing the Compatibility Settings.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I guess then there is no way to set focus in a browser enabled form...&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;</description></item><item><title>Re: Set focus on the contact selector "DisplayName" field</title><link>https://www.infopathdev.com:443/forums/thread/56778.aspx</link><pubDate>Mon, 12 Jul 2010 22:32:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:56778</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/56778.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=56778</wfw:commentRss><description>&lt;p&gt;Is your form browser compatible? I found that &amp;quot;SelectText&amp;quot; was not available for browser forms but is for client forms....&lt;/p&gt;</description></item><item><title>Set focus on the contact selector "DisplayName" field</title><link>https://www.infopathdev.com:443/forums/thread/56748.aspx</link><pubDate>Mon, 12 Jul 2010 12:18:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:56748</guid><dc:creator>colacat</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/56748.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=56748</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m desperate need of help!&lt;/p&gt;
&lt;p&gt;I try to set the focus on the &amp;quot;DisplayName&amp;quot; field of a contact selector in InfoPath 2007 using C# code. I&amp;#39;m not much of a programmer but&amp;nbsp;I found some code.&lt;/p&gt;
&lt;p&gt;&lt;span style="COLOR:green;"&gt;// Create XPathNavigator and select field.&lt;/span&gt;&lt;br /&gt;XPathNavigator textNode =&amp;nbsp; CreateNavigator().SelectSingleNode(&lt;span style="COLOR:#a31515;"&gt;&amp;quot;/my:myFields/my:field1&amp;quot;&lt;/span&gt;, NamespaceManager);&lt;br /&gt;&lt;br /&gt;&lt;span style="COLOR:green;"&gt;// Select text in specified field.&lt;/span&gt;&lt;br /&gt;CurrentView.SelectText(textNode);&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This is supposed to work with C#, but CurrentView does not know the SelectText definition ?&lt;/p&gt;
&lt;p&gt;Does anybody have a good piece of code to make the focus point&amp;nbsp;to the &amp;quot;DisplayName&amp;quot; field.&lt;/p&gt;
&lt;p&gt;Thank you!!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>