DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Wed, 22 Aug 2007 13:30:06 -0700,    posted on: microsoft.public.dotnet.languages.vb        back       

Thread Index
  1    mfm
          2    AlexS LEASE


Set Focus to a ToolStripTextBox   
Upon the load of my form, I would like the cursor to be in a textbox within a 
toolstrip.  Does anyone know if this is possibe?  I've tried putting the 
following code in both the Form_Activate and Form_Load events:

ToolStripTextBox1.Focus()
ToolStripTextBox1.Select()
ToolStripTextBox1.SelactAll()

None of these cause an error, but none of them work.  Any ideas appreciated.
Date:Wed, 22 Aug 2007 13:30:06 -0700   Author:  

Re: Set Focus to a ToolStripTextBox   
Most probably you need to activate and focus toolstrip itself  before you 
can focus contained controls.

Just a guess though
"mfm"  wrote in message 
news:2F46CD7A-464B-4CBF-913E-5EEFA19A068C@microsoft.com...

> Upon the load of my form, I would like the cursor to be in a textbox 
> within a
> toolstrip.  Does anyone know if this is possibe?  I've tried putting the
> following code in both the Form_Activate and Form_Load events:
>
> ToolStripTextBox1.Focus()
> ToolStripTextBox1.Select()
> ToolStripTextBox1.SelactAll()
>
> None of these cause an error, but none of them work.  Any ideas 
> appreciated.
> 
Date:Wed, 22 Aug 2007 21:43:46 -0400   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us