473,396 Members | 1,938 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,396 software developers and data experts.

quick question on spacebar

Hi,

does anyone know how to catch the spacebar with a keypress event....

if (e.KeyChar == ????)

thanks.
Nov 15 '05 #1
3 7459
Dawn,

Have you tried ' '? If that doesn't work, then you might have to handle
the KeyUp event instead, and catch when the space bar is hit in that event.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"dawn" <da******@hotmail.com> wrote in message
news:gD********************@phobos.telenet-ops.be...
Hi,

does anyone know how to catch the spacebar with a keypress event....

if (e.KeyChar == ????)

thanks.

Nov 15 '05 #2
H

"dawn" <da******@hotmail.com> skrev i meddelandet
news:gD********************@phobos.telenet-ops.be...
Hi,

does anyone know how to catch the spacebar with a keypress event....

if (e.KeyChar == ????)

thanks.


Since I am a newbie I wouldn't pay to much attention to this, but maybe

if (e.KeyChar == Keys.Space )

works ? Works for Enter anyway...
Nov 15 '05 #3
Thanks,

' ' works.......sometimes life really is simple ain't it??? ;-)

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> schreef
in bericht news:ug**************@tk2msftngp13.phx.gbl...
Dawn,

Have you tried ' '? If that doesn't work, then you might have to handle the KeyUp event instead, and catch when the space bar is hit in that event.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"dawn" <da******@hotmail.com> wrote in message
news:gD********************@phobos.telenet-ops.be...
Hi,

does anyone know how to catch the spacebar with a keypress event....

if (e.KeyChar == ????)

thanks.


Nov 15 '05 #4

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

Similar topics

1
by: julio | last post by:
I noticed that pressing spacebar when a listbox has the focus scrolls the listbox to the first selected item. I'm intercepting the spacebar press event at form level for stopping and starting...
2
by: L Mehl | last post by:
Hello -- Sometimes the code editor ignores the spacebar, and requires me to cursor through the line, after entering it, and hit the spacebar where I need a space. Has anyone experienced this?...
16
by: MLH | last post by:
In Access 97 and Access 2.0 applications, if a command button has the focus, the spacebar will 'PRESS" the key. How does one go about disabling this annoying BEATURE?
3
by: Jason Kyle Baginski | last post by:
Here's a little test app to demonstrate a problem I'm having. It creates four buttons, each one with the different FlatStyle types available. Three of them behave exactly the same way(and the...
0
by: Bruce D | last post by:
I have three checkboxes lined up in a row on the dreaded datagrid. I have used the mouseup event to control whether or not the user can select a given box (i.e they can only select one box and...
11
by: Bookham Measures | last post by:
Hello As above, my Ctrl + Spacebar for intellisense is not working in VI 6.0. I have checked keyboard assignments and Ctrl + Space is listed for Edit -> CompleteWord. I added Ctrl + Shift +...
1
by: PARITOSH CHANDRA DEY | last post by:
Hi When Spacebar Click Then See The All Item ? What Is The Coding? Paritosh
5
by: prp | last post by:
Hi all, I have a problem in regularexpressionvalidator. I need that user can not enter any spacebar into the textbox.
1
by: eben12 | last post by:
Hi guys! I'm currently building web application that make use of the spacebar and I need to disable the automatic pagedown that is taking place when pressing the spacebar. In Firefox, I use the...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
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...
0
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,...

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.