Thanks for your reply. I just tried that with one of the XSN file here.
Save a copy of the XSN file
Right click on the XSN file, and then select "Design"
It does give me some warnings, but if I persist, the form will open up in the design mode and if I click on any button and select "Edit form code", I can see ...