Specify control which will have focus?!

Hello.

I've got what's an almost definitely stupid question to ask, but what will specify which control will have focus on the form after that form gets created and displayed in VS2005 projects!? I could use a focus() control method call in the form's load event handler, but that would be a hack IMHO.

I arrange tab index values of all the controls on the form in the ascending order, meaning, the one control I'd like to have focus after the form is created and displayed has the lowest tab index value = 1 (I tried using 0 also, but to no effect). Then I setup that other controls get higher by 1 tab index values, in the order I'd like them to get the focus after tab key is pressed.

But, it seems no matter what I set, it's always the last control placed on the form that will have the focus after that form is created and displayed?! Is that normal VS bahaviour?! It's a CF2.0 C# project, but still, I'm thinking that it should be the control that has the lowest tab index value that should get the control after the containing form is displayed?! Am I wrong here?! TIA

[1111 byte] By [.neo] at [2007-12-24]
# 1
Thread will be moved to the appropriate forum once the forums are back up
ahmedilyas at 2007-8-31 > top of Msdn Tech,Smart Device Development,.NET Compact Framework...
# 2

I see nothing wrong with setting focus to the control you want in form’s Load event. It's as straightforward as it could be.

IlyaTumanov at 2007-8-31 > top of Msdn Tech,Smart Device Development,.NET Compact Framework...