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

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

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

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

thisSignature.Sign
e.ReturnStatus = True