Go behind the Infopath form and change the programming language to C#
Click on “File”, then “Options”, then click on “More Options” under the title “InfoPath Options” and then click on the “Design” tab in the new window that opens up.
The default programming language is listed in the “Programing Defaults” section of the new window. You can ...