ArticleDirectory
- Step by step infopath (02) -- install the vsta Environment
Step by step infopath (02) -- install the vsta Environment
- Install vsta (Visual Studio Tools for applications)
Microsoft. NET Framework 2.0 or later must be installed on your computer. By default, the Microsoft Visual Studio Tools for applications development environment is not installed when you install infopath. To install Microsoft Visual Studio Tools for applications, You must select "Custom" for the first installation, or use "add or delete function" to update office or infopath installation, to include Microsoft Visual Studio Tools for applications. You can installProgramExpand Microsoft Office infopath and. Net programmable support to find the options for installing Microsoft Visual Studio Tools for applications.
2.SelectProgramming Language
To modify the programming language, click development tools> language. The default value on my machine is C #, so you don't need to modify it.
3. Small demo test environment
Purpose: Add two controls to the form: buttons and text boxes. When you click the button, MessageBox displays "Hello !".
Steps:
- Design form: Create a. xsn file in infopath and add text boxes and button controls.
- Add button event: Right-click the button control and click "Edit form" on the General tab.Code"Button (as shown in) to open the vs environment.
- Add Event code: MessageBox belongs to the system. Windows. Form namespace, so you must add references first.
How can I use mbox in the methods provided by smart sensing? It seems that press enter, space, or tab key are not supported.
In the toolbar, choose Edit> intelliisense> insert code snippet> mbox> tab to obtain the following code snippet.
- Test results: You can start preview in either of the following ways. First, click "preview" in infopath. Instead, click debug in. Execution successful.