Thanks, I really appreciate your help..
It works for the webservice data connection but when I try to apply timeout to a data connection which writes the form to a Sharepoint form libray, I get an error that indicates that it does not exist in the collection ?
here's the code :
XDocument.DataObjects ("Get Current User Info").QueryAdapter.Timeout = 120
XDocument.DataObjects ("Submit to Sharepoint").QueryAdapter.Timeout = 120
QueryDataSource CurrentUserDataSource
"Get Current User Info" timeout seems to work, but "Submit to Sharepoint" which is not a web service kicks out an error.
Any ideas ?