you can create a new project within .net (infopath project) that will
import your infopath form, then you can add additional code onto the
form. .net will store its own version of the form within the project,
so any changes that you make have to be done within the .net version.