muck Posted September 14, 2010 Posted September 14, 2010 Is there a Common Dialog Box (CommonDialog) for file selection in AutoCAD VBA? Is it in one of their liberary files. Thank you, Quote
BlackBox Posted September 14, 2010 Posted September 14, 2010 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) Quote
hugha Posted September 15, 2010 Posted September 15, 2010 In VBA IDE, Insert > UserForm View >Toolbox Rightclick in Controls, select "Additional Controls" Scroll to select "Microsoft Common Dialog Control, Version .." - 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 Quote
muck Posted September 15, 2010 Author Posted September 15, 2010 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, Quote
hugha Posted September 15, 2010 Posted September 15, 2010 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 ... Quote
Recommended Posts
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.