Well, I started with InfoPath with "ZERO" idea, But today i am feeling like sharing my journey with community, Because everything i got know from community.
Can we write .net code to develope Infopath form?
Yes, and here is how! step by step.
You need to install "VSTA" at the time of Office Infopath 2010. if VSTA not installed on your machine, run the office installer again, select custom mode => go under InfoPath node => Select VSTA => Select run from my computer.
Once VSTA Installed on your machine, open a Infopath form place a button on the form => right click on button => go to properties => click on edit code to open VSTA application.