ARTICLE

My First Tablet PC application using VB.NET

Posted by Mahesh Chand Articles | Tablet PC May 29, 2004
This step by step tutorial shows you how to create your first Tablet PC application using Visual Studio .NET and C# with the help of Microsoft Tablet PC API.
Download Files:
 
Reader Level:

This step-by-step tutorial shows how to create our first Tablet PC application.

1. Create a new Windows application using Visual Studio .NET. I call my project "HelloTabletPC".

2.
To use the Tablet PC functionality in our application, we have to add reference to the Tablet PC API, which provides access to the library that contains the functionality to access Tablet PC. As you can see from following Figure, I select Microsoft Tablet PC API on the Add Reference dialog and click OK.



Which adds Microsoft.Ink namespace to our References list as you can see from the following figure.



3. The Tablet PC Ink functionality of Tablet PC is defined in the Microsoft.Ink namespace. So we include the namespace in our application by adding the following line of code.

Imports Microsoft.Ink

4. Now we write code to enable Ink overlay on the form so we can use Ink or mouse to write on the Form. On the Form's load event handler, we write the following code:

Dim inkOverlay As New InkOverlay()
inkOverlay.Handle = Me.Handle
inkOverlay.Enabled = True

This code enables the ink overlay on the form. Which means you can use pen to write on the Form.

5. Now using pen, I write the following on the form. You can even use the mouse.



That's it.

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

You are awesome! This is what I was looking for and could not find it. Microsoft does not have the best help files and I know this concept was out there. Now I can look more into the Tablet PC references to build more. Thanks!!

Posted by Steve Arenfight Oct 22, 2011
Become a Sponsor
PREMIUM SPONSORS
  • 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.
    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