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

Key events stopped working?

Is it normal activity for the keypress events of a form to stop working
when button controls are on the form? I have a situation where a form
that behaves normally, is capable of sending KeyPress, KeyUp & KeyDown
events ONLY when there are no button controls on the form. If the
control is deleted, the events will again fire normally.

Is this a normal behavior, or does anyone have an idea why it would happen?
Nov 21 '05 #1
2 1065
Well, for once I answered my own question. It *is* the normal behavior,
and to still get keypress events you must enable the KeyPreview=true
property of the form.
Sam Marrocco wrote:
Is it normal activity for the keypress events of a form to stop working
when button controls are on the form? I have a situation where a form
that behaves normally, is capable of sending KeyPress, KeyUp & KeyDown
events ONLY when there are no button controls on the form. If the
control is deleted, the events will again fire normally.

Is this a normal behavior, or does anyone have an idea why it would happen?

Nov 21 '05 #2
Sam found its own answer, this to prevent from constantly opening because
somebody thinks the result message was an addition to the question and there
was no answer yet..
Nov 21 '05 #3

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

Similar topics

1
by: Glenn | last post by:
I have just started using the FileSystemWatcher in VB.NET. My first attempt was to connect to a share, using unc paths, to a server running Win2000. Everything was working great for about two...
0
by: Manuel D. Jim?nez | last post by:
Hi, we are developing an ActiveX control which plays a video streaming. We have used Visual Studio .net wizard to develop almost all the control interface, however we have trouble with event...
2
by: GGW | last post by:
Hi, I am building a Ecommerce site using usercontrols. I built a search control that uses the Ontextchaged event. The control was place manually on the page- not dynamiclly. All was working fine...
8
by: CsaaGuy | last post by:
My button events stopped working on a aspx form. Dont' know why. any suggestions?
0
by: Hanover | last post by:
I have a very weird situation. I have several controls on a form, all of them have on-changed events that are supposed to pass their values to a dataset. The problem is, their events suddenly...
2
by: Niklas | last post by:
Hi I have a remoting client/server application. The clients subscribes to a server event. All works fine if client is used as a window application, but when the client is used with No-Touch...
0
by: matt sib | last post by:
Hi all. I just upgraded to wxpython 2.7 Its way cool. However, in one of my apps, i have embedded a flash activex control. I have had it working great in wxpython 2.6. After i upgraded to 2.7,...
1
by: Kenneth Baltrinic | last post by:
I am having a very odd problem. On a page that was working until very recently we are now encountering the following situation: The page is a very basic fill in the blank form used for changing...
6
by: Bishopkris40 | last post by:
Please help. I am working on a database that logs the alarm events from a machine. The problem I have is that I need to explain why the machine has stopped and calculate the time it stops for. I...
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
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
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.