HP TouchSmart PCs is being using in many fields like it is using in education, business etc. Due to the usage of the TouchSmart PCs, the demand of applications for this increasing day by day, as every other small business firm wants applications for their use and work too. Interface these TouchSmart PCs is user friendly so everyone can easily use it. TouchSmart Application Developer Guidelines is available now, from which you can able to create applications for this platform. This article will tell you how to create your first application for TouchSmart PCs. Following are some of the requirements:

  • TouchSmart PC (model IQ504 or IQ506, current at the time of this writing)
  • Latest TouchSmart software (available from
  • Microsoft Visual Studio 2008 or 2010, Express (free) or Professional Edition
  • HP TouchSmart Application Development Guidelines (available from here).
  • Windows Presentation Foundation (WPF) and .NET development with C#.
  • .NET Framework 3.5 (although the same techniques can be used to build an application using Visual Studio 2005 and .NET 3.0).

Following are the steps from which you can create your first TouchSmart enabled application:


Open Visual Studio 2008 and on the File menu> New Project>Select WPF Application>Name your project “HelloTouchSmartApp” and select the path “C:\TouchSmart” to save your project and click OK.


Step 2:

When the project is created then open the file Window1.xaml. Now, we are going to make some changes of code which will make it a TouchSmart application. Following are the changes:

   Top="{Binding Source={x:Static SystemParameters.VirtualScreenHeight}}"
   Left="{Binding Source={x:Static SystemParameters.VirtualScreenWidth}}"

Now , we are adding some more text in the window by inserting the elements in the XAML file which are following but one thing is very important is that the size of the text on a TouchSmart UI should be more than 18 point and also match the font family which is used by  TouchSmart shell.

<TextBlock Text="My first TouchSmart App!"
Foreground="White" FontFamily="Segoe UI"


Step 3:

Build the solution by selecting Build to create the application. We should know that where the exe file of the application is will be created like in bin\Debug. It will make easy for registering the application with the TouchSmart shell which we will tell you in next step.



Now after building the solution, we are creating a XML file which contains information to register the application with the TouchSmart shell. First you have to select the HelloTouchSmartApp > Add > New Item.


Then select XML file and named the file as “Register.xml”.


Step 5:

The Registration file which we have created in the previous step specific attributes which includes the full path of your application. Replace the code present in the file with the code below.

    <IconName />

Step 6:

Now it will need to be registered with the TouchSmart shell for your application to start appear in the TouchSmart shell as told by TouchSmart Dev Zone. Make sure the TouchSmart shell is completely closed (click Close from the TouchSmart shell main screen).Start a command window with Admin rights (if UAC is enabled).Change the working directory to C:\Program Files(x86)\Hewlett-Packard\TouchSmart\SmartCenter 2.0.

Type the following command line to register your application RegisterSmartCenterApp.exe updateconfig “C:\TouchSmart\HelloTouchSmart\HelloTouchSmart\Register.xml”. You should receive a successful message upon installation. Note you only need to register your application once.

Step 7:

Your first TouchSmart Application is ready to use.


Thanks to TouchsSmartDevZone for writing such a great tutorial for the developers . The purpose of this tutorial is more simplify the steps as discussed by TouchsSmartDevZone.

Via [TouchsSmartDevZone ]