NumPad UserControl?

torread

Member
Joined
Nov 6, 2009
Messages
8
Programming Experience
Beginner
Hi to all! I'm new in vb.net and I'm trying to create a usercontrol simulating a NumPad (numbers from 1 to 9, sum not included only numbers). My idea is to create this control and then added to a WinForm that will have some Login form and the user uses this numpad control to access the Application. User will have a touch screen monitor, no keyboard is installed, that why I need to create this usercontrol. The problem is, don't know how to created. I already have the Numpad With the button Created and a test Textbox on the UserControl (Which I will delete after knowing that the buttons works) but at this moment they are not working.
Example of the Code:
Imports System
Imports System.Collections.Generic
Imports System.ComponentModel
Imports System.Drawing
Imports System.Data
Imports System.Text
Imports System.Windows.Forms

Public Class NumPad

Private Sub btnSeven_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSeven.Click
SendKeys.Send("{7}")
End Sub

Can anyone help me???
 
My example has the backspace button in it. You obviously don't like the layout - which works fine, if you update the m_Destbox variable this IS the textbox your currently editing. Why do you need sendkeys? This must be a school project.
 
Back
Top