Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / February 2005

Tip: Looking for answers? Try searching our database.

HELP : regarding Textbox Enter and Focus Question many TIA

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
CobraStrikes@al.com - 07 Feb 2005 14:16 GMT
Hi ,
  I did ask before but got no replies.

I have a series of textboxes, In Enter event I need to set the focus to a different textbox
I am having problems when I set focus within the Textbox Enter event.
It is looping thru the events.

Does anyone know how I can set focus to another object when the Textbox has
received  focus either by keyboard or mouse event.

THANK YOU.
Tom Krueger [MSFT] - 17 Feb 2005 01:58 GMT
So I assume the problem is that on each TextBox you are listening for the
Enter event and then setting focus to another textbox that also listens for
the enter event.  That isn't quite making sense to me, however, if this is
the case I would set a bool value to signify that the focus is being set
from inside your code and not the keyboard.  Then in each enter event check
the bool to determine if you should continue setting focus to another
control.

As I am writing this, I think that I am not understanding the problem
correctly.  Please post more information.  Maybe and example of why you are
doing this so I can better understand.  Sorry, its been a long day and I'm
very tired.

Signature

Tom Krueger

My Blog - http://weblogs.asp.net/tom_krueger
Smart Client DevCenter - http://msdn.microsoft.com/smartclient/
Mobile DevCenter - http://msdn.microsoft.com/mobility

This posting is provided "as is" with no warranties and confers no rights.

> Hi ,
>   I did ask before but got no replies.
[quoted text clipped - 9 lines]
>
> THANK YOU.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.