For future reference, another way is to get the CLIENTPROCESSID via Session object, then get the process' main window handle, create a NativeWindow instance, assign the main window handle to it, and then use the NativeWindow instance as the owner parameter to MessageBox.Show().