Re: canFocus dosen't work
- Posted by Mike777 Apr 20, 2009
- 840 views
Don,
Why do you say it doesn't work? The first sets the CanFocus property to True. The second sets the CanFocus property to False. In both cases, the return value of the routine is a 1, no doubt indicating that it successfully did what you instructed it to do. In order to test it, you would need to issue a SetFocus command after setting the CanFocus property to True (and noting that the control received the focus) or after setting the CanFocus property to False (and noting that the control did not receive the focus).
Mike