Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
|
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the 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 September 17th, 2003, 05:40 AM
Registered User
 
Join Date: Aug 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to reference keyboard press to visual button ?

Hi

I have created a Form with a Button and a TextBox.
I already implemented the Button function so if i press on it i see
the corresponding value in the TextBox.
Now i want to do exactly with the same value from the keyboard, so if
i press on the corresponding value from the keyboard i want it to be
referenced to the same Button function as if i have clicked on it
with the mouse pointer, something like in the windows calculator program.
I would appreciate every kind of code example. thanks.


 
Old September 28th, 2003, 04:39 AM
Registered User
 
Join Date: Sep 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I was looking for exactly the same thing.

Check this page, it has everything you need and the examples work just fine

http://community.borland.com/article...,30129,00.html

 
Old September 29th, 2003, 03:56 AM
Authorized User
 
Join Date: Jun 2003
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

This seems to be for winforms. Is there a way to cause a keyboard key to execute a function using webforms in asp.net (aspx pages)

Best wishes,
Grahame

Grahame Hambleton
Webmaster / Developer
Saïd Business School
University of Oxford
Saïd Business School
Park End Street
Oxford OX1 1HP
Tel: +44 (0) 1865 288863
Fax: +44 (0) 1865 288805
email: [email protected]
http://www.sbs.ox.ac.uk





Similar Threads
Thread Thread Starter Forum Replies Last Post
cant add Reference to a visual basic project tiyyob Pro VB 6 5 March 31st, 2009 05:57 PM
Press delete on keyboard qiux General .NET 1 April 9th, 2008 02:38 AM
keydown/press r.parolari BOOK: Professional JavaScript for Web Developers ISBN: 978-0-7645-7908-0 1 March 17th, 2006 09:34 AM
associate keyboard return to a button silvia C# 8 February 28th, 2006 05:06 PM
what happens when u press on a button? TaLz VS.NET 2002/2003 2 September 24th, 2003 12:28 PM





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