Step by step infopath (02)-configure vsta

Source: Internet
Author: User
ArticleDirectory
    • Step by step infopath (02) -- install the vsta Environment
Step by step infopath (02) -- install the vsta Environment
    1. 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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.