0

I'm building a desktop (thick) Infopath 2010 form with code-behinds that need to set form focus on certain fields so that they are on the field in question for easier entry. Is there a way to do this in .NET? Offhand I can't seem to find a way.

tekiegreg
  • 1,667
  • 6
  • 25
  • 41

1 Answers1

2

Use the SelectText method of the View class

Link for script http://msdn.microsoft.com/en-us/library/bb251012(v=office.12).aspx

Link for managed code http://msdn.microsoft.com/en-us/library/microsoft.office.infopath.view.selecttext.aspx

ktharsis
  • 3,160
  • 1
  • 19
  • 30