mrjt Messages: 705 Registered: March 2007 Location: London
Contributor
I think that the difference is:
SetFocus will pass focus to the ctrl and take it from whatever has focus.
ActiveFocus sets the Ctrl that should have focus when the window next gets focus. There is only an immediate focus transition if the window is currently in the foreground.
indiocolifa Messages: 49 Registered: January 2008 Location: Argentina
Member
I'm posting this because I've a DocEdit control on a form (which already has WantFocus() true) and I can't set the focus with docEditControl.SetFocus(), but it works with ActiveFocus(docEditControl).