How to Write VB Code for a Touch Screen Keypad

Written by mark pool
  • Share
  • Tweet
  • Share
  • Email

Microsoft Visual Basic (VB) is a high-level object-oriented language. This means it reduces the complexity of writing for different hardware platforms. Visual Basic uses a series of libraries to interface with different hardware and systems. To program for a touch screen, you must add the necessary hardware library to your program code. The name and procedure to add this library is the same in Visual Basic 8.0 to 10.0.

Skill level:

Other People Are Reading


  1. 1

    Click the "Visual Basic" shortcut on your Desktop.

  2. 2

    Click the "Open" option in the "File" menu, then select your VB project to open the file.

  3. 3

    Right-click the project in the "Solution Explorer" window and click the "Show Code" option.

  4. 4

    Add the following line after the existing code:

    include System.Hardware.Input.TouchScreen

    This includes the touch screen hardware library. The rest of the program doesn't need to be changed.

Don't Miss

  • All types
  • Articles
  • Slideshows
  • Videos
  • Most relevant
  • Most popular
  • Most recent

No articles available

No slideshows available

No videos available

By using the site, you consent to the use of cookies. For more information, please see our Cookie policy.