Getting Started with Windows Forms Office2010Form
17 Nov 20211 minute to read
This section describes how to configure Office2010Form
control in a Windows Forms application.
Assembly deployment
Refer control dependencies section to get the list of assemblies or NuGet package needs to be added as reference to use the control in any application.
Please find more details regarding how to install the nuget packages in windows form application in the below link:
Creating simple application with Office2010Form
You can create the Windows Forms application with Office2010Form control as follows:
Creating the project
Create a new Windows Forms project in the Visual Studio to change the standard form into Office2010Form.
Configure Office2010Form
Office2010Form
is an advanced standard Form, we can configure it by following the given steps:
Step 1: Add the following required assembly references to the project:
- Syncfusion.Shared.Base.dll
Step 2: Include the namespaces Syncfusion.Windows.Forms.
using Syncfusion.Windows.Forms;
Imports Syncfusion.Windows.Forms
Step 3: Change the class to inherit Office2010Form
instead of the standard form.
public partial class Form1 : Office2010Form
{
public Form1()
{
this.Text = "Office2010Form";
}
}
Partial Public Class Form1 Inherits Office2010Form
Public Sub New()
Me.Text = "Office2010Form"
End Sub
End Class