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

Opening Screen in VFP7 compiled .exe 1

Status
Not open for further replies.

hoffmanhoward

Programmer
Joined
Jun 15, 2003
Messages
16
Location
US
I am using a form as my "opening menu" when I compile my programs using the wizard I can not get my "Opening menu"
to display on opening automatically. I have to either use the "quick menu" or file-open. and when I do open it is not maximized. How do I correct this.

I also noticed that when I veiw my reports in the "compiled" .exe they are also not in a maximized window.

any suggestions..please

Thanks
 
Is your opening form "Top-Level"? Is it Modal? Do you have a READ EVENTS in your main program? Are you hiding the Screen? Does your application use a Resource File (FOXUSER.DBF)?

Rick
 
WHen I "check" top level and compile many of my other forms do not run when I click on them. When I check "normal" and compile all forms run. I don't know why this is happening.

I guess this is the first problem to solve. any suggestions ??
 
hoffmanhoward

I also noticed that when I veiw my reports in the "compiled" .exe they are also not in a maximized window.

Look at faq184-1762.




Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Hi Mike,

I went to the FAQ you suggested and tried it

but I did something wrong because I don't really understand
the language

my form is called "payroll"

Please advise what I have to change..I already did some replacing but I got error messages it didn't like
.caption what goes before the "." (sorry but I don't understand what I have to do)

oRepForm = CREATEOBJECT("Form")
WITH oRepForm
.Caption = "My report Title"
.WindowState = 2 **This will maximize the form
.Show()
ENDWITH
REPORT FORM myReport.frx PREVIEW WINDOW (oRepForm.Name)
oRepForm.Release()
 
hoffmanhoward

Code:
oRepForm = CREATEOBJECT("Form")
WITH oRepForm
 .Caption = "My report Title"
 .WindowState = 2  
 .Show()
ENDWITH
REPORT FORM myReport.frx PREVIEW WINDOW (oRepForm.Name)
oRepForm.Release()

Nothing goes before the ".", it should run as is. I took out the "**This will maximize the form"




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