Spread for Windows Forms Quick Start (1), spreadforms

Source: Internet
Author: User
Tags control label

Spread for Windows Forms Quick Start (1) (reproduced), spreadforms

Preface

Spread for Windows Forms is the most powerful table control. It has a flexible and open object model and more than 50,000 APIs, allowing developers to customize almost all elements and interfaces. On the other hand, because there are many Spread interfaces, it is not easy for some developers to get started with Spread. We hope that the "Quick Start" series of articles will help beginners of Spread understand the basic functions and usage of Spread in a short period of time.

Add the Spread control to a project.

To use the Spread for Windows Forms product, you need to add the Spread control to the project of Visual Studio. NET.

First, create a new project in Visual Studio. NET:

1. Start Visual Studio. NET.

2. Select New ---> project from the File menu.

3. In the Create Project dialog box, in the project type area, select the project type that matches your development language environment. For example, select Visual C # project in the project type list.

4. In the new project dialog box,

A. in the template list, select a Windows form application.

B. In the Name box, write down the name of the new project. The default name of the first Windows Forms Application is WindowsApplication1.

C. In the address box, use the specified path as the address path, or click browse to change the path to a new directory.

D. Click OK.

If your project does not display Solution Explorer, select Solution Explorer from the View menu.

5. In Solution Explorer, right-click the form name Form1. In the pop-up menu, select Rename and enter the name of the new form you want.

 

Next, add the Spread control to the toolbox. You only need to perform this operation once.

1. If the toolbox is not displayed, select the Toolbox item in the View menu.

2. After the toolbox is displayed, view the GrapeCity Spread category (if you have installed Spread and put the Toolbox icon into another category, view other categories ).

3. if the Spread control is not in the toolbox, right-click the toolbox and choose Custom toolbox from the shortcut menu to add or delete a project, or select a project (depending on the Visual Studio version ).

4. In the custom toolbox dialog box, click the. NET Framework control label.

5. In the. NET Framework control label, the Spread control (in the FarPoint. Win. Spread namespace) must be displayed in the Control List. Select the Spread control check box and click OK. Select fpChart for the Chart control (in the FarPoint. Win. Chart namespace ).

6. You can open a project and insert a control to verify whether the control has been added.

 

Next, add the Spread control to a project.

1. In an open project, select the Spread control in the Windows Forms Toolbox (or any other column you add.

2. on the Windows Forms page, drag a rectangle of the initial control size you want or simply double-click the control on the page to draw a Spread control, and then the Spread control appears.

 

 

Your project should look similar to the image here, indicating that you have added the Spread control to the project.

 

Understanding the components of controls

The Spread control is a form that combines with the scroll bar to display data. If there are multiple forms, one label bar can contain multiple labels. The following figure shows the main part of the Spread control. Multiple parts can be hidden, but the default display is shown here.

 

 

After learning about the basic components of the control, you can customize the Spread control. There are two ways to do this: one is to right-click the Spread control, select "Spread designer" in the pop-up menu and start the interactive Spread designer to customize Spread. You can also flexibly set Spread to generate a table application through code. Next we will take C # as an example to learn how to use code to customize Spread. In this process, we will gradually learn about various Spread APIs.

 

By studying the Quick Start series of articles, you can easily use Spread to develop reports:

 

 

 

 

Search for documents and get help

If you encounter problems when learning and using Spread for Windows Forms, you can view the documentation or get help from the following channels:

1) Go to the online help page.

In Visual Studio. NET, you can use the F1 shortcut to obtain online help information. When the Spread control or one of its members gets the focus, pressing the F1 key will display the help information of Spread for Windows Forms.

You can also view the online help file in a separate window, select all programs in the Start Menu-> GrapeCity-> Spread for Windows Forms 5 Chinese version, and then select the Spread help document.

2) View online documents

The address of the online document is as follows: http://www.gcpowertools.com.cn/docs/spreadwin5help/

 

The content is basically the same as the online help, but you can read and learn without installing Spread. At the same time, online documents are also convenient for you to share the content you are interested in with colleagues and friends.

3) Visit the Chinese Technical Forum

If you encounter problems during your learning process, or you want to share your learning experience with other developers who use the Spread product, please visit the grape city product technical community.

 

 

This article was published by the grape city control technology development team. For more information, see grape city control.

Related Article

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.