Pro VB 6For advanced Visual Basic coders working in version 6 (not .NET). Beginning-level questions will be redirected to other forums, including Beginning VB 6.
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Pro VB 6 section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.
You will have to add an invisible form to your ActiveX DLL project with a common diaolg box control on it, then in your DLL's class Set the common dialog box variable to the form.commonDialogBox control. Here is a very simple example
Code:
Dim WithEvents MyCommonDialog As CommonDialog
Private Sub Class_Initialize()
Set MyCommonDialog = Form1.CommonDialog1
End Sub
Private Sub Class_Terminate()
Set MyCommonDialog = Nothing
End Sub