Gio,
What exactly are you trying to do? And where are you calling this from? The command window (works fine in my system)? A compiled APP (also works fine)? An EXE (seems to work but I've only tested one time)?
Let us see your code and where you're calling it from. If it's part of a framework you may be overwriting it later with pre-designed framework code.
HTH
Barbara
>why doesn't the function _Screen.WindowState=2 work in VFP6. It works perfectly in VFP3. This function works when I run my main program on the command window but It doesn't on the shortcut that I have created.