Hi there.
I am trying to learn how to access the controls on an infopath form using VB.NET (using VSTA). Using the following code:
Public Sub btnTest_Clicked(ByVal sender As Object, ByVal e As ClickedEventArgs)
' Write your code here.
Dim chkBox As XPathNavigator = Me.MainDataSource.CreateNavigator().SelectSingleNode _
("/my:myFields/my:chkCompleted", NamespaceManager)
End Sub
I am getting the following exception: "System.Security.SecurityException was unhandled by user code"
If anyone can help, that would be ace!