Wrox Programmer Forums
|
VB.NET 2002/2003 Basics For coders who are new to Visual Basic, working in .NET versions 2002 or 2003 (1.0 and 1.1).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET 2002/2003 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 July 12th, 2005, 04:42 PM
Authorized User
 
Join Date: Jan 2005
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Default set focus

My program has a Simple ComboBox and a txtbox. I would like the txtbox to have focus after an item in the ComboBox is selected. Any advice would be appreciated. Thanks.
 
Old July 12th, 2005, 05:56 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 540
Thanks: 0
Thanked 4 Times in 4 Posts
Default

txtbox.focus()

Put this in your selectedindexchanged event of your combobox.





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to set focus to a RadioButtonList? binici ASP.NET 2.0 Basics 0 March 2nd, 2007 08:03 PM
set focus sameer_1981 Intro Programming 1 February 27th, 2007 09:14 AM
Set focus question crisan Access VBA 4 March 25th, 2005 09:38 PM
how to set focus waley .NET Web Services 1 May 25th, 2004 02:38 PM





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