Al,
According to the Microsoft Tablet PC SDK:
<quote>
Q. How can I determine if my application is running on a Tablet PC?
A. Use the Windows GetSystemMetrics API and pass in SM_TABLETPC as the value
of the index. SM_TABLETPC is defined in Winuser.h. The value of SM_TABLETPC
is 86. The method returns True or nonzero if the Microsoft Windows XP Tablet
PC Edition operating system is running; False or zero otherwise.
Applications should not rely on a true or nonzero value to mean all Tablet
PC components are installed and working. See the following question for
details on how to determine if Tablet PC components are installed.
</quote>
I would expect System.Windows.Forms.SystemInformation would list the value
as it gives most other SystemMetrics, however it appears to be missing
TabletPC (SM_TABLETPC).
You can use code similar to:
Public Enum SystemMetric As Integer
TabletPC = 86
End Enum
Declare Auto Function GetSystemMetrics Lib "User32" (ByVal index As
SystemMetric) As Integer
If GetSystemMetrics(SystemMetric.TabletPC) <> 0 Then
Debug.WriteLine("On a Tablet PC")
Else
Debug.WriteLine("Not on a Tablet PC")
End If
Hope this helps
Jay
"Al" <Al@discussions.microsoft.com> wrote in message
news:A4**********************************@microsof t.com...
Hi,
I like to know if my application is running on Tablet PC or not and based
on
that behave differently. How would I know if the system is Tablet PC or
not?
Thanks so much in advance
Al