IT tutorials
 
Technology
 

Leveraging Visual Studio 2010 with InfoPath : Create a Custom Task Pane

10/15/2013 9:23:12 PM
- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019
Scenario/Problem:You want to create a custom task pane.

Solution:Use Visual Studio 2010 to create a new InfoPath add-in.

To create a new task pane, follow the steps for creating a new InfoPath 2010 add-in. Then perform these steps:

1.
Add a user control to your project.

2.
Add windows controls to your user control as needed. In this example, a user control named CustomTaskPaneControl is used.

3.
Add any code to handle options or selections.

4.
In the ThisAddIn class, add private variables to handle the user control and custom task pane, as shown in Listing 1.

5.
In the startup method of the ThisAddIn class, add code to instantiate the user control as a custom task pane, as shown in Listing 2.

Listing 1. Private Declarations
private CustomTaskPaneControl customTaskPaneControl;
private Microsoft.Office.Tools.CustomTaskPane customTaskPane;

Listing . Custom Task Pane Instantiation
  customTaskPaneControl = new CustomTaskPaneControl();
customTaskPane = this.CustomTaskPanes.Add(customTaskPaneControl, "Custom
Task Pane");
customTaskPane.Visible = true;

6.
Build the project, and then launch InfoPath Designer 2010. The custom task pane appears as shown in Figure 1.

Figure 1. Building a custom task pane add-in displays the user control in InfoPath.
 
Others
 
- Leveraging Visual Studio 2010 with InfoPath : Create an InfoPath 2010 Add-In
- Leveraging Visual Studio 2010 with InfoPath : Access Your Form Within a Visual Studio Workflow
- SQL Server 2008 : Backup and recovery - Backup compression
- SQL Server 2008 : Backup and recovery - Database snapshots
- SQL Server 2008 : Online piecemeal restores
- Windows 7 : Troubleshooting Your Network - Testing Network Connectivity, Diagnosing File and Printer Sharing Problems
- Windows 7 : Troubleshooting Your Network - Testing Network Cables , Checking Network Configuration
- Windows 7 : Troubleshooting Your Network - Diagnostic Tools (part 2) - Network Diagnostics, Event Viewer
- Windows 7 : Troubleshooting Your Network - Diagnostic Tools (part 1) - The Network and Sharing Center, Network Map
- System Center Configuration Manager 2007 : Windows Imaging and Image Management (part 2) - Driver Injection, Image Capture
 
 
Top 10
 
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
Technology FAQ
- Is possible to just to use a wireless router to extend wireless access to wireless access points?
- Ruby - Insert Struct to MySql
- how to find my Symantec pcAnywhere serial number
- About direct X / Open GL issue
- How to determine eclipse version?
- What SAN cert Exchange 2010 for UM, OA?
- How do I populate a SQL Express table from Excel file?
- code for express check out with Paypal.
- Problem with Templated User Control
- ShellExecute SW_HIDE
programming4us programming4us