ARTICLE

Using Tablet PC Ink on Windows Controls

Posted by Mahesh Chand Articles | Visual Basic 2010 May 29, 2004
Any Windows Forms control including a Form itself can be used as a surface to draw using the Tablet PC pen and ink. In this article, I will discuss how to use the Ink functionality to write on various Windows Forms controls.
Download Files:
 
Reader Level:

You can use any control as a surface for the ink and can write on these controls using a Tablet PC pen. To make 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.

Dim inkOverlay As 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.

Dim inkOverlay As 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

share this article :
post comment
 

I think most of the tablet PCs should be ink enabled.

Posted by Mahesh Chand Apr 03, 2009

I want your help that all pen tablets are compatible for ink in vb.net.if not then please mention companies pen tablets models which are compatible.Thanks. Noman Ameer

Posted by Noman Ameer Feb 24, 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.
    The leading .NET charting control now features PDF, Flash and Silverlight export, visualization of large datasets and more. Deliver true charting functionality to your BI, Scorecard, Presentation or Scientific apps. Download evaluation now.
6 Months Free & No Setup Fees ASP.NET Hosting!
Become a Sponsor