This documentation is archived and is not being maintained.

InputType Property

.NET Framework 1.1

Returns the type of input supported on the device. The default value is "telephoneKeypad".

public virtual string InputType {


Values include: "virtualKeyboard", "telephoneKeypad", and "keyboard".


The following example demonstrates how to use the InputType property to determine the type of input support.

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim currentCapabilities As MobileCapabilities = CType(Request.Browser, MobileCapabilities)

If currentCapabilities.InputType = "keyboard" Then
   Label1.Text = "You can type fast"
   If currentCapabilities.InputType = "telephoneKeypad" Then
      Label1.Text = "You cannot type Fast"
   End If

End If

End Sub


public void Page_Load(Object sender, EventArgs e)
   MobileCapabilities currentCapabilities
      = (MobileCapabilities)Request.Browser;
   if (currentCapabilities.InputType == "keyboard")
      Label1.Text = "You can type fast";
   else if (currentCapabilities.InputType == "telephoneKeypad")
      Label1.Text = "You cannot type Fast";

See Also

Applies to: MobileCapabilities Class