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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to hide the Main VFP Screen ?

Forms & Screen

How to hide the Main VFP Screen ?

by  ramani  Posted    (Edited  )
**********************************************************
** How to hide the Main VFP Screen.
**********************************************************
** by Subramanian.G (ramani)
** FoxAcc Software
** ramani_g@yahoo.com
**********************************************************
**
** 1. Add the following code in your Form suitably.
MyForm.InitEvent
_SCREEN.Visible = .F.
This.Show()
READ EVENTS
**
** 2. set in the forms property sheet...(not thro code)
.ShowWindow = 2
.MDIform = .f.
.ALwaysOnTop=.t.
**
** 3. All other forms called from this form,
.ShowWindow = 1

** 4. Note that if the _screen is OFF, then when you do a PrintPreview, remeber to set _screenVisible = .t. before the REPORT FORM... syntax and reset it to false after the preview. Otherwise, the native PrintPreview by VFP which is always to SCREEN will not show up.

** 5. Add "SCREEN=OFF" in the CONFIG.FPW. Adding this will ensure, even the momentary flicker by the VFP screen appearing and then disappearing will go. (However, this is not a must, if the flickering can be accepted).

**********************************************************
** EOF
**********************************************************
Ramani
(Subramanian.G), FoxAcc/Winner Soft, ramani_g@yahoo.com
www.winnersoft.coolfreepages.com
**********************************************************
Evaluate this to make others know how useful is this :)

Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top