Click here to Skip to main content
15,896,557 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
i am using vb.net in asp.net
i did virtual keyboard and i want to disable the keyboard while using virtual keyboard
how to disable it?
Posted
Comments
Sergey Alexandrovich Kryukov 28-Mar-13 17:08pm    
Bad idea. Why? A good idea would be to use the physical keyboard, or use it modifying its behavior, it this is needed.
Now, do you know to affect keyboard of just one application? Which application? If the virtual keyboard application, it would make no sense at all. If not, what?
—SA

1 solution

In ASP.NET on client side? I hope you never achieve this.
But you can do inside your browser window:
XML
<script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.js"></script>

<input type="text" name="name-field" id="name-field">

<script type="text/javascript">
$(function () {
        $(document).keydown(function(e) {
            e.preventDefault();
        });
    });
</script>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900