473,804 Members | 3,018 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Keyboard Arrow Keys not giving a KeyCode!....

While trying to write a simple game which uses the arrow
keys, I noticed that under the subroutine that handles
mybase.keydown, everytime I pressed any arrow keys, or in
fact any of the 9 keys above it (End, Del, PGDN etc) that
the result for e.keycode was 'none', yet it still picked
up my keypress! All other keys work fine. This problem
only recently happened. I have tried the following to
help: Roll back to D.X 9.0a and 9.0 SDK, remove SDK
altogether, Remove and reinstall VB.NET 2002,
progressively applying each update from msdn. Trying
previous versions of my BIOS, all to no avail. This
problem even somehow manages to show up in Return to
Castle Wolfenstein, where the same keys in question are
registering as shift! This problem does not seem to occur
in Unreal Tournament '99 though. I'm really stumped by
this one, and I would like to get rid of it so I can
continue to write ANY program that will use arrow keys!
Interestingly, any program that I wrote BEFORE this
problem occurs which is run through the IDE -> DOES NOT <-
have the same problem, BUT, the e.keycode values are
still nothing, but the subroutine magically runs itself
twice, and the second time, despite still having an
e.keycode value of 'none' it this time performs the
correct action?!!???!! Please help!
Jul 19 '05 #1
0 3269

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
22570
by: Bob | last post by:
well i pretty much said it in the title. i was wondering how would you make a picture box or an object repond to the arrow keys. for example i have a picture and i want to move right when i press the right arrow on my keyboard. what is code for that? if anyones knows the code please answer.
3
13064
by: Lachlan Hunt | last post by:
Hi, I've been looking up lots of documentation and trying to work out a cross-platform method of capturing a keyboard event and working out which key was pressed. From what I can find, there doesn't appear to be any standardised keyboard event interface other than this DOM 3 Events W3C Working Group Note . However, it is only a note and doesn't appear to be implemented in any browser. Is there another standard that I've missed? The...
5
18232
by: skipc | last post by:
Hi, I am stuck... I've got a popup window that displays a list in table format with links on the bottom to navigate the list <prev> 1 2 3 ... <next> When I demo'd to the users... they immediately asked if they could use the arrow keys and enter key to navigate the list. I think there must be a way to do this, but I can't figure it out.
1
3339
by: Richard Coutts | last post by:
I have a Continous Form with 5 or so fields for each record, in a line from left to right. Because the Contuous Form lists several records at once, the form looks pretty much like a Datasheet. So, I'd like to be able to navigate it like one when using the up/down/left/right arrow keys of the keyboard. I have the fields set with tab stop settings so that hitting the tab key moves one field to the right. The problem I'm having is when I...
5
21129
by: nx-2000 | last post by:
I've got a very large C# forms app and now that its being used in bigger environments we're getting a steady stream of "why does it do this?" problems. The most nagging of which right now is that when a MessageBox.Show() is displayed, if the user hits enter or esc, those keys get passed back to the form. From searching online, this is apparently by design(for whom, I don't know, why its not optional, I _really_ don't know). This...
0
343
by: Paul Nathan | last post by:
While trying to write a simple game which uses the arrow keys, I noticed that under the subroutine that handles mybase.keydown, everytime I pressed any arrow keys, or in fact any of the 9 keys above it (End, Del, PGDN etc) that the result for e.keycode was 'none', yet it still picked up my keypress! All other keys work fine. This problem only recently happened. I have tried the following to help: Roll back to D.X 9.0a and 9.0 SDK, remove...
1
10157
by: Martijn Mulder | last post by:
/* I have problems detecting the Arrow Keys on a User Control. A control derived from System.Windows.Forms.Control neglects 'bare' Arrow Keys but does react on the combination <Altor <Ctrl+ Arrow Key. The code below shows what I mean. How can I cure this? (excuse me for the line breaks) */
2
5766
by: Brice Rebsamen | last post by:
Hi I wrote the following program that reads the keyboard in medium raw mode (keycode mode). Here is the initialization code, the full code is at the end. fd = open("/dev/tty0", O_RDONLY); tcgetattr ( fd, &newkbd ); newkbd.c_lflag &= ~ (ECHO | ICANON | ISIG); newkbd.c_iflag = 0;
0
9706
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9579
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10321
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10077
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9152
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6853
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5651
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4300
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3820
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.