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

Trace which Key button was pressed?

Hi there,

I have one subform in a Master form, which is set to add mode only.
I allow only for data entry. Sofar all words fine.
All information on the main form is set for display only and have no tab
stops, and all controls are looked.

1) I like to know what event is triggered, when the user presses the <esc
button>, because the subform doesn't remain in addmode, it shows the first
record and subsequent records?
2) I use an unbound textbox which for date entry, which is not affected ,
hence keeps the value entered.
The user how ever is believed that he / she has entered the date already
as they see it?
Question:
When using the <esc button> is the whole form affected or only then entry
sub form?
How could I catch the <esc button> click and then run some code to refresh
the addmode status.

Kind regards

Norman

Nov 12 '05 #1
1 2389
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hitting the Escape key should not kick the form out of DataEntry mode.
Something else is going on. Not enough info to determine what.

Hitting the Escape key while entering any data will re-set the control
value to it's previous state. If there wasn't any data to begin with
when the user hit Escape it will return to that state (nothing) after
the user hits the Escape. If the user hits Escape more than once any
updates/adds to the current record will be re-set to the record's
previous state.

Use the current control's KeyPress event to read which key was
pressed.

Escape key KeyAscii value = 27

MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBQCXlk4echKqOuFEgEQLRHgCg6hBvgowLr3sOo6CoFuj3YO RZrdUAn0Pt
/2Jksw4vLVbvEI/1sFTbEyOz
=8Fxs
-----END PGP SIGNATURE-----
Norman Fritag wrote:
Hi there,

I have one subform in a Master form, which is set to add mode only.
I allow only for data entry. Sofar all words fine.
All information on the main form is set for display only and have no tab
stops, and all controls are looked.

1) I like to know what event is triggered, when the user presses the <esc
button>, because the subform doesn't remain in addmode, it shows the first
record and subsequent records?
2) I use an unbound textbox which for date entry, which is not affected ,
hence keeps the value entered.
The user how ever is believed that he / she has entered the date already
as they see it?
Question:
When using the <esc button> is the whole form affected or only then entry
sub form?
How could I catch the <esc button> click and then run some code to refresh
the addmode status.


Nov 12 '05 #2

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

Similar topics

1
by: robert | last post by:
hi! I want to have a custom button change appearance when pressed and then call a function and change back to its original appearance when released. here's what i have now, which works mostly....
2
by: jb | last post by:
Hello, I need to know which button was pressed in the submit , i tried reading the vaule of submit it the validateDate function but it returns 'undefined' value ; I do this in asp all the time, Not...
8
by: Syed Ali | last post by:
Hello, I have 1 HTML form with 4 submit buttons and 10 textfield entry areas. If submit button1 is pressed I need to make sure that all 10 textfield entries have been filled before submitting...
3
by: James McGivney | last post by:
I have a project in VS.NET using C# I have a series of buttons on an aspx page. When one of the buttons is pressed, a panel becomes visible and allows the user to enter and edit data. I want to...
18
by: jrhoads23 | last post by:
Hello, I am trying to find a way to tell if an .NET windows forms Button (System.Windows.Forms.Button) is "depressed" (pushed down). For my application, I can not use a check box control set to...
0
by: martin | last post by:
Hi, I have created an asp.net application as a project, and also another project that is just a class library. My asp.net application calls a function in the class library. I am attempting to...
7
by: Amadelle | last post by:
Hi all and thanks in advance, I am stuck! I can't figure out how to identify which button was clicked on my ASP.NET page in the PostBack event? So what I am trying to do is to is to have an if...
19
by: darrel | last post by:
On my vb.net page, I have 4 sets of inputs + form buttons. example: Search: (GO) Zip: (GO) County: (GO) County: (GO) The problem is if I go to the page, type in a zip code, and hit...
1
by: jeffreytfritz | last post by:
I have a situation where we have placed a composite webcontrol (containing several buttons) on a webpage. The control has several 'OnClick' events wired up to the buttons, and handlers are placed...
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
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
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.