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

One form program

Status
Not open for further replies.

crossface

Programmer
Nov 30, 2002
81
US
I have a very simple application which is run from one form.

I built the projection into an exe. It works fine but I don't want the main menu bar showing. How can I make it disappear and still run the form?

Thanks

Kevin Cotter
Byron Schools
 
crossface

There are a few steps to take in order to achieve this. Take a look at Top Level forms in FoxPro

Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Code:
SET SYSMENU TO

***running application here

SET SYSMENU TO DEFAULT


...or if you prefer:

Code:
PUSH MENU _MSYSMENU
SET SYSMENU to

***running application here

POP MENU _MSYSMENU


...the second of these examples is preferred if you want to make reasonably sure that you system menu in VFP comes back right while you are debugging your application and such. That's the only real reason those final lines are there is to help put stuff back the way it was when you are debugging or running your app in the VFP IDE...a simple check could be performed before running the last line such as:

Code:
_SCREEN.ADDPROPERTY("InDebugMode", _VFP.STARTMODE = 0)
PUSH MENU _MSYSMENU
SET SYSMENU to

***running application here

if _screen.InDebugMode
     POP MENU _MSYSMENU
endif

...but the difference in speed and performance is neglegible.

boyd.gif

[sub]craig1442@mchsi.com[/sub][sup]
"Whom computers would destroy, they must first drive mad." - Anon​
[/sup]
 
crossface

Disregard my post. I read your question wrong.

Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top