SIGN UP MEMBER LOGIN:    
ARTICLE

Working with Tablet PC InkPicture Control in C#

Posted by Mahesh Chand Articles | Metro Style Apps in C# June 24, 2004
Tablet PC SDK provides two very powerful but easy to use Ink controls for Ink recognition. These two controls are - InkEdit and InkPicture. This article discusses how to work with InkPicture control. See Working with Tablet PC InkEdit control to work with InkEdit control.
Reader Level:
Download Files:
 

Tablet PC SDK provides two very powerful but easy to user Ink controls for Ink recognition. These two controls are - InkEdit and InkPicture. This article discusses how to work with InkPicture control.

Adding Tablet PC Ink Controls

Ink recognition controls are controls that recognizes Tablet PC Ink and provides functionality to work with Ink. Ink controls are installed as .NET components and defined in the Microsoft.Ink namespace, which means both controls are managed controls. These controls are a part of Tablet PC SDK. If you are running a Windows XP Tablet PC edition, you do not have to install Tablet PC SDK.

You can add Ink Controls to the Toolbox by right clicking on the Components tab of Toolbox and select Add/Remove Items, which launches Customize Toolbox dialog. Select InkEdit and InkPicture check boxes and click OK. ( See Figure 1).


Figure 1. Adding Ink Controls to Toolbox.

Once these controls are added to Toolbox, you can simply drag and drop them to the Form and work with them. See Figure 2.

Figure 2. InkEdit and InkPicture controls.

InkPicture Control

InkPicture control is an extended version of Windows Forms PictureBox control. Besides the standard PictureBox functionality, this control is Ink enabled, which means if you draw on top of the image using Tablet PC Ink Pen, the control recognizes the ink. You can also save ink as it was drawn and the later load it back.

To test the InkPicture control, I create a Windows Forms application and drags InkPicture control to the Form. Download InkPicture Source code here. Now if you run the application, you will notice the InkPicture control is ready to accept ink input. Figure 3 shows the ink enable InkPicture control.

Figure 3. InkPicture control with ink.

Summary

InkPicture control is an extended version of Windows Forms PictureBox control. Besides the standard PictureBox functionality, this control is Ink enabled, which means you can write on the control by using a mouse or Tablet PC pen. In this article, we covered how to use this control at design-time without writing a single line of code. In my forthcoming article, I will discuss how to write, save, and load ink on this control.

Login to add your contents and source code to this article
share this article :
post comment
 

Its been several years since I wrote this article and now I don't know where the source code is. Sorry!

Posted by Mahesh Chand Aug 28, 2009

That is it?

Posted by ronnie ji Aug 03, 2009
6 Months Free & No Setup Fees ASP.NET Hosting!
Become a Sponsor
PREMIUM SPONSORS
  • ceTE software specializes in components for dynamic PDF generation and manipulation. The DynamicPDF™ product line allows you to dynamically generate PDF documents, merge PDF documents and new content to existing PDF documents from within your applications.
    Finally – a virtual platform that delivers next-generation Windows Server 2008 Hyper-V virtualization technology from a managed hosting partner you can truly depend on. Visit www.maximumasp.com/max for a FREE 30 day trial. Hurry offer ends soon. Climb aboard the MaxV platform and take advantage of High Availability, Intelligent Monitoring, Recurrent Backups, and Scalability – with no hassle or hidden fees. As a managed hosting partner focused solely on Microsoft technologies since 2000, MaximumASP is uniquely qualified to provide the superior support that our business is built on. Unparalleled expertise with Microsoft technologies lead to working directly with Microsoft as first to offer IIS 7 and SQL 2008 betas in a hosted environment; partnering in the Go Live Program for Hyper-V; and product co-launches built on WS 2008 with Hyper-V technology.
Team Foundation Server Hosting
Become a Sponsor