I have developed an application and is working well.however I have a problem.and that is when i click on the application icon there are two window appearing.one is my own main form which i have set as main with its own menu items and the other is the default vfpro window.below is my main code that runs the application:
*Main program
SET PATH TO 'C:\census update'
#define db_name "census update"
*set Environment
SET MULTILOCKS ON && Set for table buffering
SET SYSMENU OFF
SET CONSOLE OFF
*opens the database
IF NOT DBUSED(db_name) THEN
OPEN DATABASE db_name SHARED
ENDIF
SET DATABASE TO db_name
DO FORM mainform.scx
READ EVENTS
CLEAR EVENTS
CLEAR ALL
CLOSE ALL
CLOSE DATABASES ALL
RELEASE ALL
I believe there is a way to hide the visual foxpro window and let only my main form to run alone,but i don't know how.could anyone assist me on this.
Thankyou in advance.
*Main program
SET PATH TO 'C:\census update'
#define db_name "census update"
*set Environment
SET MULTILOCKS ON && Set for table buffering
SET SYSMENU OFF
SET CONSOLE OFF
*opens the database
IF NOT DBUSED(db_name) THEN
OPEN DATABASE db_name SHARED
ENDIF
SET DATABASE TO db_name
DO FORM mainform.scx
READ EVENTS
CLEAR EVENTS
CLEAR ALL
CLOSE ALL
CLOSE DATABASES ALL
RELEASE ALL
I believe there is a way to hide the visual foxpro window and let only my main form to run alone,but i don't know how.could anyone assist me on this.
Thankyou in advance.