SIGN UP MEMBER LOGIN:    
ARTICLE

Using Tablet PC Ink on Windows Controls

Posted by Mahesh Chand Articles | Metro Style Apps in C# June 23, 2004
You can use any control as a surface for the ink and can write on these controls using a Tablet PC pen. To make a control ink enabled, you must have to assign the handle of the control to InkOverlay handle.
Reader Level:
Download Files:
 

You can use any control as a surface for the ink and can write on these controls using a Tablet PC pen. To make a control ink enabled, you must have to assign the handle of the control to InkOverlay handle.

For example, the following code sets a button as ink overlay control. So you can write on the button using Tablet PC pen.

InkOverlay inkOverlay = new InkOverlay();
inkOverlay.Handle= button1.Handle;
inkOverlay.Enabled = true;

 

Using the above code, only one control can be used at a time. For example, if we replace the above code with the following, only DataGrid control will support the ink overlay.

InkOverlay inkOverlay = new InkOverlay();
inkOverlay.Handle= button1.Handle;
inkOverlay.Handle= dataGrid1.Handle;
inkOverlay.Enabled = true;

If you want to make the Form as default drawing surface, you can assign Form's handle to the InkOverlay's handle using the following code:

inkOverlay.Handle= form1.Handle;

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

Hai I am vijay,


I had one question, can we use Microsoft Ink to paint(draw) on a desktop

Posted by vijay raju Aug 25, 2009
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.
6 Months Free & No Setup Fees ASP.NET Hosting!
Become a Sponsor