using infopath 2007
i have the following in vb and works fine:
DataSources(
"external datasource name").CreateNavigator().SelectSingleNode("xpath to field in external datasource", NamespaceManager).SetValue(Application.User.LoginName)
however when putting that in c# we get this error
'Microsoft.Office.InfoPath.XmlFormHostItem.DataSources' is a 'property' but is used like a 'method'
what should it be in c#? i can't figure that out and the converter i use says the c# is the same as vb
Thanks