Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Prevent User Browsing Different Dir with CommonControl
Message
From
18/05/2004 13:59:42
 
 
To
12/05/2004 19:01:10
Donald Lowrey
Data Technology Corporation
Las Vegas, Nevada, United States
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00903425
Message ID:
00905030
Views:
32
Hi Don.

>I have a form that uses GetFile() for the user to return the name of a table which is subsequently used by other code.
>
>But, I could not figure out how to prevent the user from browsing to different directories. In otherwords, the user should only be allowed to select a table from the directory set when the GetFile dialog opens.
>
>So I tried using the activex commoncontrol. I have the control working on a form. But I can't seem to figure out how to limit the user to the default directory.

The FFC _ComDlg class (in _System.VCX), which is just a wrapper for the CommonDialog control, has an lNoChangeDir property that prevents the user from changing directories. This causes 0x00000008 to be added to the Flags property of the CommonDialog control.

Doug
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform