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("/my:myFields/my:field2", NamespaceManager);
CurrentView.SelectText(field2,"CTRL2");
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