Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

hide screen in forms

Status
Not open for further replies.
Jul 7, 2003
95
US
I've read FAQ 184-1258 and tried the suggested code in the init area of my form....

I tried _vfp.visible = .f.

and I tried

ShowWindow = 2
MDIform = .f.
ALwaysOnTop=.t.

what happens with the second example above is the entire Foxpro session dissapears from the screen all together. All I want to do is hide the command window when I issue the do form myform command. _vfp.visible command results in nothing at all.

I do not want to issue it through the config.fp file. My version is 6.0

Any other ideas?
 
Powerprinting,

. All I want to do is hide the command window when I issue the do form myform command

If you launch your form from a PRG, the command window will close automatically.

Set up a PRG containing the following lines:

DO FORM MyForm
READ EVENTS

In the Destroy event of the form, put CLEAR EVENTS.

Now run the PRG. The command window will dispappear until you close the form.

Mike


Mike Lewis
Edinburgh, Scotland
 
Mike, your solution does what you said it would, the Foxpro main screen dissapeared.... but so did everything else. Where did it go? Its not on the task bar and not even the task manager applications show the program as running. Thanks for your help.
 
powerprinting,

It must be that you have got _SCREEN.Visible = .F. somewhere in your code; or, you've got SCREEN = OFF in your Config.FPW file.

If you find it and eliminate it, that should solve the problem.

Mike


Mike Lewis
Edinburgh, Scotland
 
I found the problem. Seems what I need to do is place CLEAR EVENTS in the Queryunload event, I had to remove CLEAR EVENTS from Destroy event however. Thanks for the help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top