Solved

Third Party On Screen Keyboard, numeric only.

Posted on 2016-09-15
9
57 Views
Last Modified: 2016-09-20
Does anyone know of a Third Party on Screen Keyboard, numeric only keys with backspace and enter?
0
Comment
Question by:HLRosenberger
  • 6
  • 3
9 Comments
 
LVL 48

Expert Comment

by:jpaulino
ID: 41799891
Is jQuery.NumPad an option?

http://a.kabachnik.info/jquery-numpad.html
0
 
LVL 1

Author Comment

by:HLRosenberger
ID: 41799896
sorry.  I should have not included ASP.NET.  This is a .NET desktop app.
0
 
LVL 1

Author Comment

by:HLRosenberger
ID: 41799910
Or what if I create my own little form which is a "keypad", and do a Sendkeys?   The problem I am running into is that Sendkeys send to the active window, so how do I click a button on my form with the form getting focus?
0
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
LVL 48

Expert Comment

by:jpaulino
ID: 41799929
VB or C#?
0
 
LVL 1

Author Comment

by:HLRosenberger
ID: 41799944
VB.  I can convert C# code, if necessary.
0
 
LVL 1

Author Comment

by:HLRosenberger
ID: 41799952
0
 
LVL 48

Accepted Solution

by:
jpaulino earned 500 total points
ID: 41799997
You just need to create a simple for for that (like this http://www.codeproject.com/Articles/267588/Creating-a-touchscreen-interface-such-as-a-numeric)

You could remove the focus and use do something like this (using RegisterHotKey):

http://www.codeproject.com/Articles/4345/NET-system-wide-hotkey-component
0
 
LVL 1

Author Comment

by:HLRosenberger
ID: 41800447
I have a simple form working.  I can use SendKeys to enter data to the active window, like Wordpad or Excel or Word.   I use the code shown below to prevent the form from being "active".

However the point of creating this numeric keypad is to use it within my own app.  But it does not work, in that when I click a button on my keypad form, my app loses focus.  How can I prevent that?  See image.    



 Protected Overrides ReadOnly Property ShowWithoutActivation As Boolean
        Get
            Return True
        End Get
    End Property

    Protected Overrides ReadOnly Property CreateParams As System.Windows.Forms.CreateParams
        Get

            Const WS_EX_NOACTIVATE As Integer = &H8000000
            Dim params As CreateParams = MyBase.CreateParams
            params.ExStyle = params.ExStyle Or WS_EX_NOACTIVATE
            Return params

        End Get
    End Property  

 Private Sub Class1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load

       Me.TopMost = True

    End Sub


keypad
0
 
LVL 1

Author Closing Comment

by:HLRosenberger
ID: 41806751
thanks
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question