I see the problem - but the think the root cause is very complicated.

For one thing ... not too sure why your creating the ToolButtons as children of the form when in fact you have a PictureBox that is theoretically "covering" them up. In fact, in the lastest-latest build im running right now - I couldn't even see the ToolButtons. I know why they are covered in the leatest build, and not covered in the current release - but i would suggest that you try not to layer too many things on top of one another right now.

The changes I'm doing for the next build will actually enhance the layering of controls - but so long as they are created in a hierarchy as children and children of children. This is all so that I can implement the BringToFront and PushToBack type properties (that we've already discussed) and have them work correctly.

After seeing this script might have to rethink some of this stuff - not sure. The big question I have is what plans did you have for the PictureBox ($picBack) ... were you going to draw on it while the ToolButtons existed ?

But having said (and asked) all that I agree yeah - there is a problem with SetFocus it would seem. One thing I do know for sure is that the ToolButtons are stealing the focus and not releasing it ... will investigate.

[ 12. February 2003, 18:39: Message edited by: Shawn ]