Microsoft Office Tutorials and References
In Depth Information
Creating our first example
Next drag-and-drop a textbox to display the Hello World message
and a button to write the Click event for, from InfoPath toolbox.
The next image represents the InfoPath Toolbox Task Pane showing
the InfoPath-supported controls.
6. Right-click on the button and select Button Properties from the shortcut
menu. In the Button Properties window, click on the Edit Form Code button
under the General tab. This will generate the Click event for the button.
7. Add the following code into the control's Click event:
public void Click_Clicked(object sender, ClickedEventArgs e)
// Read the Textbox and write the "Hello World"
XPathNavigator xNode = MainDataSource.CreateNavigator().
// Set value to Textbox
xNode.SetValue("Hello World");
Search JabSto ::

Custom Search