Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C++ and Visual C++ > Visual C++
|
Visual C++ Questions specific to Microsoft's Visual C++. For questions not specific to this Microsoft version, use the C++ Programming forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual C++ section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 1st, 2003, 11:34 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 128
Thanks: 0
Thanked 0 Times in 0 Posts
Default Capture Keystroke in a text box

When using an Edit box is it possible to capture the key stroke. As an example I may want to evaluate the entry in different ways. Perhaps I want to restrict the entries to a numeric value, or convert entries to uppercase ro a number of other function.

What I am looking for is a similar function to the KeyPress event available in Visual Basic. This will allow you to evaluate the ascii value of the key and modify it if you like.

Thanks for your help.



Larry Asher
__________________
Larry Asher





Similar Threads
Thread Thread Starter Forum Replies Last Post
Count in combo box(display results in text box) mboyisis Access 4 April 4th, 2008 07:08 AM
capture check box data into mysql osemollie PHP How-To 0 January 30th, 2006 12:18 PM
how to capture the text in column khautinh C# 0 December 19th, 2003 01:38 PM
How to capture the combobox text ??? thomaz C# 2 September 22nd, 2003 08:11 AM
Cancel a keystroke Kenny Alligood Access 4 June 12th, 2003 10:02 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.