<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Web browser textbox focus</title><link>https://www.infopathdev.com:443/forums/thread/72389.aspx</link><pubDate>Mon, 28 Nov 2011 11:00:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72389</guid><dc:creator>jigartailor1984</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72389.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=72389</wfw:commentRss><description>Hi 
Jigar Here

I am having the same problem 

and i am using the InfoPath 2010 Browser Enabled Form.

Can you please tell me how can in set focus to the control.


I Have tried the code below but it works on local when we upload it to the sharepoint site it will not work.

            XPathNavigator field2 = MainDataSource.CreateNavigator().SelectSingleNode(&amp;quot;/my:myFields/my:field2&amp;quot;, NamespaceManager);
            CurrentView.SelectText(field2,&amp;quot;CTRL2&amp;quot;);

if i preview the form from InfoPath 2010 it works fine but when i try from web browser it will not works.

Please help if you can



Jigar</description></item><item><title>Re: Web browser textbox focus</title><link>https://www.infopathdev.com:443/forums/thread/51504.aspx</link><pubDate>Mon, 08 Feb 2010 14:04:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:51504</guid><dc:creator>Qazi Anis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/51504.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=51504</wfw:commentRss><description>&lt;p&gt;i think&amp;nbsp;this is not possible in&amp;nbsp;ip07&amp;nbsp;broswer forms however&amp;nbsp;this is possible in infopath 2010 browser forms&lt;/p&gt;</description></item><item><title>Re: Web browser textbox focus</title><link>https://www.infopathdev.com:443/forums/thread/51503.aspx</link><pubDate>Mon, 08 Feb 2010 13:58:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:51503</guid><dc:creator>rishibajaj1</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/51503.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=51503</wfw:commentRss><description>can anybody please answer this question. It will be great. thanks</description></item><item><title>Web browser textbox focus</title><link>https://www.infopathdev.com:443/forums/thread/51462.aspx</link><pubDate>Fri, 05 Feb 2010 21:12:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:51462</guid><dc:creator>rishibajaj1</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/51462.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=51462</wfw:commentRss><description>I am working on web browser infopath form. I have a button on page. I want to set the focus on textbox when i click that button. I tried that 

this.CurrentView.SelectText(contactFirstName);

it works in infopath application but not in web application.

Please help!!!!</description></item></channel></rss>