Hi all
I'm trying to do something which due to my extensive background in VB.net programing should be simple but isn't!! All I'm trying to do is update the contents of a text box at run time with a Users' username. The code I'm using to test the text box updating is:
Public Sub FormEvents_Loading(ByVal sender As Object, ByVal e As LoadingEventArgs)
' Write your code here.
Dim root As XPathNavigator = MainDataSource.CreateNavigator()
Dim textbox As XPathNavigator = root.SelectSingleNode("/my:myFields/my:myIP", NamespaceManager)
textbox.SetValue("
test")
End Sub
When I run it, nothing gets putinto the text box so it remains blank.
Can anyone see where I'm going wrong? Oh yeah - I'm using Infopath 2010 to create a Web Browser Form but it's saved as 2007 version.
Thanks in advance