Developing InfoPath Form Templates with Code
Office 2013
The topics in this section provide information about creating form templates that have business logic written in managed code (Visual Basic or C#) against members of the Microsoft.Office.InfoPath namespace.