How to list directories in VBA for Autocad?

How to list directories in VBA for Autocad?

Anonymous
Not applicable
428 Views
3 Replies
Message 1 of 4

How to list directories in VBA for Autocad?

Anonymous
Not applicable
In VB there is a DriveListBox control, DirListBox control and a FileListBox
control but not in VBA for AutoCAD. So how do I show drives, directories
like in those controls for VB?
0 Likes
429 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
You can create a user control in VB and build it as an OCX file to give
yourself access to these controls in VBA. I've done this before with the
DriveListBox.

--

Gordon Reichhardt wrote:

> In VB there is a DriveListBox control, DirListBox control and a FileListBox
> control but not in VBA for AutoCAD. So how do I show drives, directories
> like in those controls for VB?
0 Likes
Message 3 of 4

Anonymous
Not applicable
Go to Frank O's site http://www.acadx.com, or for the code http://code.acadx.com/ and download there the class CommonDialog.cls.

If use it then it will give you access via WindowsAPI's to the Open File and Save file dialog boxes and also to the Browseforfolder dialog.

Good Luck
0 Likes
Message 4 of 4

Anonymous
Not applicable
Thanks Bill, this makes absolute sense to me. I will try this.
0 Likes