How can I use a MDI Form in a DLL? How do I pass an arguement?

I have a completed VB app that uses a MDI Form.  I need to make it a DLL but can't because of the MDI.  Is there any way I can get this to work?  The MDI Form is needed because of a scrolling, dynamically allocated window requirement.  I also need to pass an arguement into the program.  In C I'd use the {argv argc} arguements.  How do I do this in VB?
eljefeAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

eljefeAuthor Commented:
Edited text of question.
0
KDivadCommented:
Don't know about the MDI form, although you can put all your controls into a picture box on a normal form, add scrollbars and use the scrollbars' change and scroll events to move all the controls around.
To get the parameters passed to your app, use Command$.
0
caraf_gCommented:
<nasty>You could of course define your MDI and Child forms in an executable and pass them into the DLL As Object<not recommended>
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

KDivadCommented:
Perhaps, make the app an ActiveX EXE. You should (I think) be able to make the forms normally, and you can also reference the file in the same manner as the DLL.
0
AnswerTheManCommented:
ActiveX DLLs are inProcess. MDI forms can't live inProcess.
BUT - you can use MDI forms in ActiveX EXE.
i don't know what your project is about, but you can configure and use ActiveX EXE to behave exactly as a DLL.
0
AnswerTheManCommented:
same time, same answer.....:)
0
KDivadCommented:
Yep! A bit annoying when that happens, ain't it?
0
AnswerTheManCommented:
hmmm...need the Photo-Finish camera...
0
KDivadCommented:
I finished first! I just...sorta...lost the...picture, but I swear! I was there first!
Oh, well, points don't pay the bills, so I ain't really worried about it. I'll just have to get some caffeine or something so I can type faster than you!
0
AnswerTheManCommented:
well, even between twins - there is one who came out first....he's the OLDER twin...but we say : "the last is best"
(if that's some comfort....)
0
KDivadCommented:
Aye, 'tis true. Comfort's not needed, but the attempt is plenty appreciated.

P.S. We also say "he who laughs last, laughs best", so I guess you get the points and I get the humor. I can easily handle that!

Until the next question...I bid you adieu!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.