Change code language to C#.Net in InfoPath 2010 in SharePoint 2010

This InfoPath 2010 tutorial I will discuss how to change code language to InfoPath 2010 in SharePoint 2010. As you know we can write server-side code in InfoPath forms, first, you can choose which language you want to use.

You can change the language in 2 different ways in InfoPath 2010 form:

1st Approach-
In the InfoPath 2010 form, Go to the Developer tab and Click Language as shown in the figure below:

Change code language to C#.Net in InfoPath 2010 in SharePoint
Change code language to C#.Net in InfoPath 2010 in SharePoint

Then Under Programming Language, change the value in the Form template code language drop-down list from Visual Basic to C#.

Click OK.

2nd Approach:
Go to the File Tab, then Options Then click on More Options as shown in the figure below:

Change code language to C#.Net in InfoPath 2010 in SharePoint
Change code language to C#.Net in InfoPath 2010 in SharePoint

Then in the Options dialog box, Select C# in Programming language when designing forms that run in InfoPath And also Select C# in Programming language when designing for InfoPath and InfoPath Form Services. Check the figure below:

Change code language to C#.Net in InfoPath 2010 in SharePoint
Change code language to C#.Net in InfoPath 2010 in SharePoint

You may like following InfoPath tutorials:

After this, the language will change from VB to C#. I hope this InfoPath 2010 tutorial helps to change code language in InfoPath 2010 form from VB to C# in SharePoint 2010.

Donwload Hub site pdf

Download SharePoint Online Tutorial PDF FREE!

Get update on Webinars, video tutorials, training courses etc.

>