Jump to content

Recommended Posts

Posted

Is there a Common Dialog Box (CommonDialog) for file selection in AutoCAD VBA?

Is it in one of their liberary files.

Thank you,

Posted

I think this thread belongs in the .NET, ObjectARX, VBA forum.

 

 

In any event, do you mean the default UserForm*?

  • Insert > UserForm
  • Or, the UserForm button (on the toolbar)

Posted

In VBA IDE,

Insert > UserForm

View >Toolbox

Rightclick in Controls, select "Additional Controls"

Scroll to select "Microsoft Common Dialog Control, Version .."

 

untitled.JPG

 

- then add the control to the userform from the now-augmented toolbox.

 

 

 

Caveat - the control may not be available on all machines.

 

 

Hugh Adamson

www.hatchkit.com.au

Posted

I followed the above instructions. Mine does not have "Microsoft Common Dialog Control"

listed. Is there any way I can get that listing?

 

Also, How do I put this post in the proper Forum without reposting?

Thank you,

Posted
I followed the above instructions. Mine does not have "Microsoft Common Dialog Control"

listed. Is there any way I can get that listing?

 

Also, How do I put this post in the proper Forum without reposting?

Thank you,

 

Depends on your environment. For "Microsoft Common Dialog Control" to show in the list its file must be present and registered.

 

Do you have comdlg32.ocx on your system? (generally it's in the \Windows\system32 directory) If so, is it registered?

 

What operating system and version of AutoCAD are you running?

 

Also consider that VBA is on its last legs and it might be worth considering switching development projects to .NET ... :whistle:

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...