Christoph,
Thanks for your suggestion. I will keep it in mind.
Ed
"Christoph Lindemann" <> wrote in message news:<>...
> Hi Eddie,
>
> Please mind that print monitor components are executed in context of the
> spooler service, and not in the users context. So the same rules apply, as
> it does for other service applications.
>
> Also in a terminal service environments, the spooler is executed in session
> 0 but terminal clients users in session N. So trying to display a message in
> session 0, would only result in the dialog being displayed in the console
> session.
>
> Regards,
> Christoph
>
> "ETXLab" <> wrote in message
> news: om...
> > I'm writting a print monitor. The monitor will pop up dialog to let
> > user input file name. However, the dialog box can't get focused when
> > it pops up. I tried functions such as SetFocus(), BringWindowToTop()
> > and the like. But none of them help. Is there anyone who has the idea
> > how to fix this problem?
> >
> > Thanks in advance
> > Eddie