Wrox Programmer Forums
|
C# 2005 For discussion of Visual C# 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 2005 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 18th, 2007, 11:58 AM
Friend of Wrox
 
Join Date: Dec 2006
Posts: 176
Thanks: 0
Thanked 0 Times in 0 Posts
Default tab stop

hi expert
i want when user press enter from keyboard on textBox1 the focus become to the next control (at this textBox2)

i use this code on textBox1 keyDown event

Code:
SendKeys.Send("{Tab}");
my code work successfully but when focuse is chaning the bip sound was hered from computer
how can i mute this sound?
thanks and regards
 
Old June 19th, 2007, 04:33 AM
Authorized User
 
Join Date: Jun 2007
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Dear angelboy

Don't use 'SendKeys.Send'. Instead, call 'GetNextControl' of parent of your textbox (or your form object if no container control used), and pass your textbox control as a first parameter and 'true' as a second one. It returns you a control that has a next tab index. Then you can call 'Focus' method of retrieved control to make it active;





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to disable a tab on a tab control. dbradley VB.NET 6 April 14th, 2011 10:04 AM
Stop button won't stop loop JDShaffer Visual Basic 2008 Essentials 3 May 23rd, 2008 03:22 PM
Stop watch rohit_ghosh Access VBA 2 May 3rd, 2007 04:14 AM
Stop Tab out of subform medic7103 Access 1 April 22nd, 2007 03:44 PM
Stop E-mail SannOo Forum and Wrox.com Feedback 7 June 15th, 2004 05:06 PM





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