I'm desperate need of help!
I try to set the focus on the "DisplayName" field of a contact selector in InfoPath 2007 using C# code. I'm not much of a programmer but I found some code.
// Create XPathNavigator and select field.
XPathNavigator textNode = CreateNavigator().SelectSingleNode("/my:myFields/my:field1", NamespaceManager);
// Select text in specified field.
CurrentView.SelectText(textNode);
This is supposed to work with C#, but CurrentView does not know the SelectText definition ?
Does anybody have a good piece of code to make the focus point to the "DisplayName" field.
Thank you!!