> Set the focus at the end of the loop.
>
[quoted text clipped - 58 lines]
>>>> AutoCompleteMode = AutoCompleteMode.SuggestAppend;
>>>> }}
I told you to (1) Set the Focus on some other Control than the ComboBox, and
(2) to do it "at the end of" the loop, meaning *after* the end of the loop.
The ComboBox is already getting the Focus. You want to put the Focus
elsewhere.

Signature
HTH,
Kevin Spencer
Microsoft MVP
DSI PrintManager, Miradyne Component Libraries:
http://www.miradyne.net
> Kevin,
>
[quoted text clipped - 75 lines]
>>>>> AutoCompleteMode = AutoCompleteMode.SuggestAppend;
>>>>> }}
Andrus - 27 Aug 2007 15:51 GMT
Kevin,
thank you for your patience.
I added Focus(); outside the loop, after container.ResumeLayout() line.
I also tried to add Focus(); to textbox control outside the loop.
All texts in all combo boxes are still selected in all cases.
What I'm doing wrong ?
Andrus.
>I told you to (1) Set the Focus on some other Control than the ComboBox,
>and (2) to do it "at the end of" the loop, meaning *after* the end of the
[quoted text clipped - 81 lines]
>>>>>> AutoCompleteMode = AutoCompleteMode.SuggestAppend;
>>>>>> }}