Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
I need help - Hide VFP Main Screen Problem
Message
From
26/11/1997 02:37:36
 
 
To
26/11/1997 02:16:03
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00062346
Message ID:
00062348
Views:
37
Now I have been able to hide the main VFP window and run the program module that has been choosen
from the menu bar. But the focus stays on the taskbar, and I have to press Alt+Tab to set the focus to my
form's grid control. In the INIT method of the form, I have set the focus to :
thisform.grid1.column1.text1.setfocus and it does not work. Why ?



>I'm developing an application which shows a menu bar at startup. I want to hide the main VFP
>screen after the user chooses a menu option from the menu bar and run the selected module as
>Top-Level.
>
>I have set the following:
>1. in CONFIG.FPW :
> screen=OFF
>2. in INIT method of the form:
> _screen.visible = .F.
>3. in LOAD method of the form:
> SELECT 0
> USE table1 SHARED
>4. form's showwindow :
> 2-As Top Level Form
>
>Using the above steps, when the user chooses the program module from the menu bar, I see
>that the main screen of VFP disappears, but after that I see an error message saying:
> "File is in use"
>Then I change or add commands of LOAD method of the form to the following:
> SELECT 0
> IF NOT USED('TABLE1')
> USE table1 SHARED
> ENDIF
>
>but the result is when the user chooses the program from the menu bar, then the main screen
>of VFP disappears for a while and then the program module exits to the menu bar again. Why?
>
>Thanks a lot for any kind of help,
>Andi Hidajat
>pkshq@cbn.net.id
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform