Do not call message box. Or cal it from the Click event only.
Ideally, if this is a single component, just call When method of the custom control from GotFocus event of each control inside and use nodefault when failed.
>I've managed to use a combination of these ideas so that a When method sets the internal llAccessible and my code checks that before running anything.
>
>By the way a custom control does not have the SetAll method.
>
>This has thrown up another problem :)
>
>When the user click on the right commandbutton the Control's GotFocus is run (calling the When) the CommandButtons GotFocus is then called. However when a MessageBox is activated this seems to prevent the CommandButtons Click from being called.
>Any ideas?
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.