|
-
Apr 12th, 2004, 03:31 PM
#1
Thread Starter
Frenzied Member
text box won't take focus [RESOLVED]
In my form load event I have this code:
and, i have another event, tab_selectedIndexChanged, that does the same.
when my app first fires up, the text box doesn't get the focus as expected but works fine if the tab pages are clicked back and forth.
what could be wrong here?
Last edited by Andy; Apr 19th, 2004 at 08:56 AM.
-
Apr 12th, 2004, 03:51 PM
#2
I'd bet that the form isn't shown yet when you are calling it (which is the case on form_load) so you can't actually set focus on it. An alternative is use the Actiave event (or what ever the .NET equivelent is)
TG
-
Apr 12th, 2004, 03:55 PM
#3
Thread Starter
Frenzied Member
that took care of it!! thanks a bunch!!!!!!!!!!
-
Apr 24th, 2004, 05:49 AM
#4
Junior Member
This only happens in VS.net 2002, it is fixed in vs.net 2003.
Took me a few days to discover !!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|