FormControl.OnDataChange Method
Used to bind an event handler that will run when data in a hosted form is changed.
Namespace: Microsoft.Office.InfoPath
Assembly: Microsoft.Office.InfoPath.FormControl (in microsoft.office.infopath.formcontrol.dll)
Syntax
'Declaration
'Usage
Parameters
- format
A reference to a System.Runtime.InteropServices.ComTypes.FORMATETC structure that describes format of the changed data.
- stgmedium
A reference to a System.Runtime.InteropServices.ComTypes.STGMEDIUM structure that describes the storage medium of the changed data.
Remarks
For more information about the FormControl object, see Hosting the InfoPath 2007 Form Editing Environment in a Custom Windows Form Application and the "InfoPath Editor Hosted as a Control" section of What's New for InfoPath Developers.
See Also
Reference
FormControl Class
FormControl Members
Microsoft.Office.InfoPath Namespace