Hi Terry,
Another thing that I did not bother mentioning in the post was that the E_MSGBOX() function was preceeded by the equal sign (=). When I removed the equal sign, the problem went away!
>OK, Ramil, you said:
>
>"When I press the 'regular' Enter key (the one in the QWERTY keyboard keys, the messagebox() is displayed on top"
>
>My idea was, at the place where you press the key, test for which key you hit ( Inkey(0) or LastKey()). I was thinking that the ENTER key maybe just returns LF ( chr(10)?) whereas the 'regular' key returns CR LF, CHR13). BUT, I've just tested them and they both return CHR(13). So, sorry, I'm as stumped as you.
>
>>Hi Terry,
>>Thank you for the reply. I'm not sure what you mean. The problem I'm having is that the messagebox is 'hidden' at the back of the application in the Windows ZORDER. You have to press Alt to bring the messagebox to front.
ramil
~~ learning to stand still