General information
Category:
ActiveX controls in VFP
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only