Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with Windows Open dialog
Message
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00212508
Message ID:
00212616
Views:
30
>I'm basically reposting a message that I wrote yesterday, but I don't think I gave enough info, asked the right question, etc. anyhoo...
> I've written a simple program that opens only one component of my program, the main pageframes. I don't want the standard VFP desktop, I want to use the form as top level, as it has all that is necessary to run it (find, next record, exit, etc.). I've got the form to run if I hardcode the location of the database file into the main.prg. However, I'd like to make it so that before the form comes up it goes to a default directory and when the file isn't found there it brings up the standard windows open dialog. So in order to do this I used LOCFILE() and it works fine, however, when it brings up the open dialog it must move it off the screen. I say this because there is a button on the taskbar that says Open, but the dialog box is nowhere to be found. What am I doing wrong? How can I tell the box to stay in the middle of the screen without using VFPs desktop? I appreciate your help:)

Hi John,

LOCFILE() (as well as GETFILE() and PUTFILE()) won't be visible unless the main VFP window (_SCREEN) is. You'll either have to make it visible or use the Common Dialogs ActiveX control.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform