This link takes you to an MSPress book that I'd recommend if you really want to get deep in the development aspects of InfoPath.  http://www.microsoft.com/mspress/books/7128.asp