Hi Rob,
Why don't you just swap the 2 lines i.e. set the printer first and then minimize the app.
I have no idea though why this happens.
>Here's a good one. I have an APP that I want to be minimized. However, if you make a call to get the current default printer the screen will return to normal !
>
>EG.
>
>_screen.WindowState=1 ?? minimize the app
>CurPrinter=SET("PRINTER",2) && the screen returns to a windowstate of 0 ie regular
>
>this is really stupid behaviour. I have tried setting TALK off , NOTIFY Off , Console OFF .. nothing works.
>
>Of course, I can get the current windowstate before the call and restore it after , but it is most annoying.