Anyone know how to change the focus to another control at design time?
I have a container control and I want to be able to at design time change to
another control in the container control based on the mouse click. I figured
that part out, but I can't get it to set the focus with just a simple .Focus
or .Select().
Thanks!
James Hancock
joeycalisay - 10 Dec 2004 05:22 GMT
You have to get control of the ISelectionChangeService through the
DesignerHost and then execute its SetSelectedComponents method.
> Anyone know how to change the focus to another control at design time?
>
[quoted text clipped - 5 lines]
> Thanks!
> James Hancock
James Hancock - 10 Dec 2004 15:15 GMT
Great! Thanks!
> You have to get control of the ISelectionChangeService through the
> DesignerHost and then execute its SetSelectedComponents method.
[quoted text clipped - 11 lines]
>> Thanks!
>> James Hancock