all groups > dotnet windows forms designtime > december 2004 >
You're in the

dotnet windows forms designtime

group:

Focus at design time



Focus at design time James Hancock
12/9/2004 4:48:00 PM
dotnet windows forms designtime: 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

Re: Focus at design time James Hancock
12/10/2004 10:15:26 AM
Great! Thanks!

[quoted text, click to view]

Re: Focus at design time joeycalisay
12/10/2004 1:22:35 PM
You have to get control of the ISelectionChangeService through the
DesignerHost and then execute its SetSelectedComponents method.

[quoted text, click to view]

AddThis Social Bookmark Button