Wrox Programmer Forums
|
Visual Basic 2008 Essentials If you are new to Visual Basic programming with version 2008, this is the place to start your questions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Basic 2008 Essentials 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 July 24th, 2012, 09:38 AM
Registered User
 
Join Date: Feb 2012
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default Using the return key

I'm pretty new to all this, but I have a windows form that has a toolstrip at the top of the form. This toolstrip contains a parameter box and a 'Fill' button which gets used to retrieve the data based on the parameter entered. Is there anyway of accepting the parameter using the <Return> key rather than the 'Fill' button on the toolstrip. I've tried changing properties but with no luck
 
Old August 19th, 2012, 11:21 PM
Friend of Wrox
 
Join Date: Sep 2005
Posts: 812
Thanks: 1
Thanked 53 Times in 49 Posts
Default

Hi

Are you looking at setting the Return key for a Button as Default. You can do that by setting the Default button

Cheers
Shasur
__________________
C# Code Snippets (http://www.dotnetdud.blogspot.com)

VBA Tips &amp; Tricks (http://www.vbadud.blogspot.com)
 
Old August 20th, 2012, 02:44 AM
Registered User
 
Join Date: Feb 2012
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'll give it a go

Thanks
 
Old August 20th, 2012, 03:42 AM
Registered User
 
Join Date: Feb 2012
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I've had a look at the solution given above. I can see how it works if you've got buttons on the form, but the button I require the action on is in a toolstrip. If I highlight the form although there is an 'AcceptButton' option there are no further options in the drop down menu. If I highlight the toolstrip button I don't get a 'Data Bindings' option and if I highlight the whole toolstrip I get a 'Data Bindings' option, but no 'AcceptButton' option





Similar Threads
Thread Thread Starter Forum Replies Last Post
capture return key in keydown event kawak_zx7 .NET Framework 1.x 1 April 23rd, 2007 11:21 AM
Return Primary Key of Last Append Query mselkregg Access 1 November 16th, 2006 11:36 AM
<bean:message key="PNR.INPUT"/> key has null value warsha_14 Struts 1 November 13th, 2006 07:26 AM
Multiple Forms and the Return Key Focus rit01 ASP.NET 2.0 Basics 4 June 20th, 2006 01:44 PM
return key based navigation VB 6.0 madhukp VB How-To 3 October 6th, 2004 04:32 AM





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