You can place forms in a DLL, but you have to have a Public createable class in the same DLL with some code to show the form.<br>
<br>
For example:<br>
<br>
Public Sub ShowAccountingForm()<br>
frmAccounting.Show<br>
End Sub<br>
<br>
You need to create a public method for each form that you have in the DLL. This does not always lend itself well, since most of the time forms are used for data collection. The problem is that all the data is on the form and now you have no way of getting it off of there, unless you create more public properties or methods for the form.<br>
<br>
If the above example was in a Class called CForms, then to call it from the main program you would do this:<br>
<br>
Dim objForms as CForms<br>
<br>
Set objForms = New CForms<br>
objForms.ShowAccountingForm<br>
set objForms = Nothing<br>
<br>
This would show the form. While it is do-able, it's probablly more trouble than it's worth. If you're really bent on doing it this way, I would create a public createable class for each from. Then I would declare all my public properites to match any of the input on the form. The problem comes in when you have a Combo box or List box where you have several things that need to go in it. At this point you're just wrapping the functionality of existing controls. This brings be back to the statement that it's probablly more trouble than it's worth.<br>
<br>
-Steve