I am trying to implement hot key access to my command buttons that are located within a frame. The frame is physically located on form2. Form1 is the only form showing. It contains frame1. I use WinSetParent to position frame2 within frame1. Seems that whenever a messagebox is displayed, the focus shifts back to form1, thereby disallowing the hot keys on the command buttons that are located on form2. I have a small sample app. if anyone cares to delve into this issue for me. I have tried to set focus in code, use the SetActiveWindow, and the SetForegroundWindow...nothing worked. I do have a solution, but I don't care for it. I can use an API call other than WinSetParent that will make the form the child instead of the frame. This solution makes form1 actually look out of focus by graying the title bar...not good. Any ideas.