In this video demo, Phil Newman, a program manager on the InfoPath team shows how you can write managed code in an InfoPath form to add items to a SharePoint list, and then publish this form as a sandboxed solution to SharePoint.
Read More - Register for Free Membership