This event handler will run only in fully trusted form templates. Dim thisSignature As Signature = e.SignedDataBlock.Signatures.CreateSignature ...

' This event handler will run only in fully trusted form templates.

Dim thisSignature As Signature = e.SignedDataBlock.Signatures.CreateSignature

' To add other pieces of information to sign, modifying the
' signature template returned by
' thisSignature.SignatureBlockXmlNode.
' Write your code here.

thisSignature.Sign
e.SignatureWizard = False