Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 2005 > Visual Basic 2005 Basics
|
Visual Basic 2005 Basics If you are new to Visual Basic programming with version 2005, this is the place to start your questions. For questions about the book: Beginning Visual Basic 2005 by Thearon Willis and Bryan Newsome, ISBN: 0-7645-7401-9 please, use this forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Basic 2005 Basics 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 June 15th, 2006, 03:38 PM
Registered User
 
Join Date: Jun 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default enter key on textbox, performs button event code??

hey peeps,
really stuck and its insanely annoying as it should be so simple!

i've had a tops week being a begginner getting a database with search facility going with little help so far. but getting an enter keypress on a textbox to perform the same as the button i've used to submit the search process is doing my nut in.

could someone please give example of (hopefully brief) code required to get the enter key to submit my search query, with a brief explanation of how it works. brief not vague mind, unfortunately i don't understand any similiar posts and i've googled my head off over it for as clear explanation, but alas no luck.

i have the search bit written and working, and its held in a button click event. how do i, when the search textbox has the cursor in it still after being written in, submit my search query by just pressing enter aswell as being able to use the button????

thanks in advance





squeak squeak
 
Old June 16th, 2006, 02:42 PM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

Lost both Shift keys on your keyboard, have you? (You might want to consider the concept that, when you are asking for help it behooves you to minimize the burden on the one(s) who want to hel by as much as is possible. It is hard [harder, anyway] to find the start of a new sentence when there is not the cue that a starting cap provides. Just a thought...)

Is this a web project, or a Windows Forms project?
 
Old June 17th, 2006, 04:55 PM
Registered User
 
Join Date: Jun 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

in all of my ten years internetting, including forum writing and emailing you are the first person ever to complain... i hope you don't have a cow every time you get a text message on your mobile phone ;)

anyway, i got a solution already from msdn forums and for any other newbies who similiarly didn't know where to start with this, here's a link to my recently solved post...

http://forums.microsoft.com/MSDN/Sho...82291&SiteID=1

this post ended up also covering, in essence, baby steps into subroutines also.

squeak squeak
 
Old June 17th, 2006, 04:57 PM
Registered User
 
Join Date: Jun 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

oh, and it was a windows form!

squeak squeak
 
Old June 22nd, 2006, 05:13 AM
Registered User
 
Join Date: Aug 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by squeakstar
 in all of my ten years internetting, including forum writing and emailing you are the first person ever to complain... i hope you don't have a cow every time you get a text message on your mobile phone ;)

anyway, i got a solution already from msdn forums and for any other newbies who similiarly didn't know where to start with this, here's a link to my recently solved post...

http://forums.microsoft.com/MSDN/Sho...82291&SiteID=1

this post ended up also covering, in essence, baby steps into subroutines also.

squeak squeak
Thank you Dude.....Hope you are great...






Similar Threads
Thread Thread Starter Forum Replies Last Post
Enter Key Event (Enter Key Only) Coby Excel VBA 0 February 6th, 2008 09:55 PM
enter key should execute button click event MunishBhatia ASP.NET 2.0 Professional 6 November 25th, 2007 10:59 PM
how to disable enter key for a particular button g_vamsi_krish ASP.NET 1.0 and 1.1 Professional 1 January 19th, 2006 11:22 AM
Enter key vs Click Button akibaMaila VB.NET 2002/2003 Basics 1 January 14th, 2005 12:49 PM
Enter Key event handler KevinO ASP.NET 1.0 and 1.1 Basics 2 August 17th, 2004 09:57 AM





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