Solved

Third Party On Screen Keyboard, numeric only.

Posted on 2016-09-15
9
43 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
 
LVL 48

Expert Comment

by:jpaulino
ID: 41799929
VB or C#?
0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

760 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now