hi jim,

thanks for the code!

im a bit new to VB, and definitely new to the whole sendmessage/window handle thing... if you could help me out by giving me some more specifics about how to implement this code, i would appreciate it. i have a few questions:

1. does the code you provided for the dll have to be written into the BAS module? do i also need to define the function "sendmessage" by typing the following:
"Public Declare Function SendMessage Lib "user32" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Long) As Long"?

2. how does my dll know what the handle to the exe is? is "long hwnd" all i need to type?

3. in the exe code, there is a condition line "if wMsg = WM_USER" but the constant WM_USER was defined in the dll, not the exe. does this need to be defined in the exe as well?

Thanks again!