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!

Maximize MAIN FORM at STARTUP

Status
Not open for further replies.

Gert

Programmer
Apr 9, 2000
240
DO
Hi to all
I've been trying to MAXIMIZE my appl. Main FORM when the app. start so I add this code to the CONFIG.FPW file:

TITLE = M O V I E C E N T E R
SYSMENU = ON
With _Screen
.WindowState = 2
.Caption = ""
.Closable = .F.
.ControlBox = .F.
.MaxButton = .F.
.Movable = .F.
ENDWITH

and it works fine in some computer and not in another.
it is maybe the screen resolution, but I realy don't know how to fix it. I would like my app MAINFORM always be Maximize.

Any help On this one will be apreciate.

 
Hi my friend
use the command
_SCREEN.WINDOWSTATE=2 Walid Magd
Engwam@Hotmail.com
 
YOU HAVE TO PUT THE CODE IN THE MAIN PRG AT START UP LEVEL..
_screen.windowstate = 2

In case you are having a form at start up, you can put in the init event of the form..
This.WindowState = 2
ramani :-9
(Subramanian.G)
FoxAcc
ramani_g@yahoo.com
 
YOU HAVE TO PUT THE CODE IN THE MAIN PRG AT START UP LEVEL..
_screen.windowstate = 2

In case you are having a form at start up, you can put in the init event of the form..
This.WindowState = 2

Yuor code is not working in some computer, because the config.fpw is not available to those stations, which do not maximise...or else, those stations have a different config.fpw elsewhere in the search path earlier to what you have defined...
ramani :-9
(Subramanian.G)
FoxAcc
ramani_g@yahoo.com
 
vfp7
on startup all I get is the command window and nothing else vfp7 loads alright My interrogation of Help has produced no help
 
Hi Tolly,
You could have started a new thread.:)
In your main.prg.. after the DO FORM myForm .. whatever..
Add the line..
READ EVENTS

This will make your application visible. Then you can decide.. what more you want.
:) ramani :-9
(Subramanian.G),FoxAcc, ramani_g@yahoo.com
 
Hi Ramani
Perhaps a little further explanation would be useful.
When I start VFP7 from the Start Menu only the Command Window appears, no panels, no toolbars just the Command Window superimposed upon the Windows 98 Desktop and thats as far as I get. When I enter various legitimate commands, nothing happens except that I occasionally get an error message.
On startup I would expect to see a VP7 Toolbar somewhere but no such luck
Thanks for your suggestion but I haven't got anything to work on yet, no forms, no applications just a frustrated developer knocking at the door but nobody is home.
 
HI
Locate FoxUser.DBF and FoxUser.FPT in your VFP7 directory and delete these two files. Then restart VFP7. YOu should get the things you want. If this did not solve your problem.. assuming you have not done anything.. I suggest you reinstall VFP7 again.

Hope this solves your problem.

1. I suggest you become a regular member with a login password. This will help you evaluate your answers and you can vote for those who solves your problems. This will ensure that more members show interest to your requests and answer them promptly.
2. The members respond more spontaneously to help people who in some way recognise their help (in these threads by a show of vote). This costs you nothing but brings in happiness to experts that their services are recognised. So you utilise this little factor and get maximum help in this forum.
3. Also when you vote, please vote for only correct answers so that other members when browsing the older threads will get a clue as to which one to adapt.
4. The more clearer you present your question, the faster you will get your problems solved. It is the perception of your problem.. that brings in quick answers. So the more precise you ask the question presenting relevent points, the better.

Wish you all the best.
:) ramani :-9
(Subramanian.G),FoxAcc, ramani_g@yahoo.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top