473,387 Members | 1,455 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Key board Buttons

lee123
556 512MB
Is there a way to pop up a msgbox to say what number a button is on a keyboard is example:

if i was to press the delete button on my keyboard then a msgbox would pop up and say what number it was.

is this possible to do?

lee123
May 31 '09 #1
7 1727
debasisdas
8,127 Expert 4TB
you need to capture the keystrokes in the keypress and keydown events.
Jun 1 '09 #2
lee123
556 512MB
and how is this done, or how would i get the keystokes?

lee123
Jun 2 '09 #3
debasisdas
8,127 Expert 4TB
you need to capture the keyascii and keycode in the specified events.
Jun 2 '09 #4
vacvac
6
Expand|Select|Wrap|Line Numbers
  1.  
  2.       Private Sub Text1_KeyDown(KeyCode As Integer, Shift As Integer)
  3.  
  4.         If  KeyCode = vbKeyDelete Then ...
  5.  
  6.       End Sub 
  7.  
Hope this help
Jun 2 '09 #5
vacvac
6
There is some code that can help you , click here
Jun 2 '09 #6
harshadd
176 100+
You need to capture the keystrokes in the keypress and keydown events.
and for more specific message use an IF loop or case loop.
Jun 4 '09 #7
smartchap
236 100+
Use following sub:

Expand|Select|Wrap|Line Numbers
  1. Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
  2.     MsgBox KeyCode
  3.  
  4. End Sub
Jul 18 '09 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: delisonews | last post by:
I'm looking for a simple, filesystem-based message board. (No MySQL!) Something that I could include easily in my code: include '../inc/messageboard.php'; .... so that the board shows up at...
0
by: Mad Scientist Jr | last post by:
I'm not getting any answers on YAF's own board, so thought I'd ask here... how do you get YAF to work with >1 board? I clicked Admin and on the left, Boards, and we have created 3 boards *...
2
by: Champika Nirosh | last post by:
Hi, I want to create drawing board application that can draw Line, rectagle, circle and free hand drawing. Each drawing need to be transparent, moveable (draggable), have bring to front and...
10
by: sam_cit | last post by:
Hi Everyone, I'm working on developing a chess game and i decided to use c++ for its object oriented approach. I have a bass class unit and is inherited to distinct number of units (like king,...
3
by: john | last post by:
I would like to view physical memory that is mapped to a pci board. I am using a tool called WinIO to try to create a virtual address to that physical memory. It works for both read and write of...
2
by: Hyperion | last post by:
hello, is it possible to give key board short cuts for print preview and print instaed of placing buttons?im strucked here plese reply
4
by: Hypnotik | last post by:
So I'm writing this program. I have the board constructed, and I'm having a problem making a move. At this point I just want to make a move, I'll work on whether it is a legal move after that. The...
8
by: PhongPham | last post by:
Hello, Info relate: OS : uclinux Platform : unix version 2.4.22 (or 2.4.26) Chip on board : ARM7 I want to get a python package on network to "make" in linux (Fedora core 1 or anything...
4
Ericks
by: Ericks | last post by:
Trying again: I use the standard Access Switchboard with 8 buttons. In the mouseover event of each button I have the label text change by following code: Private Sub Option1_MouseMove(Button As...
1
by: poopsy | last post by:
hi all, i'm trying out some examples on java..and i found this code where there is board and i cant find out what package to import to make this work, im getting error where there is "board".. i...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.