Click to See Complete Forum and Search --> : How to open a form found in a VB.Net Dll in VB as mdichild
Marlen
September 14th, 2005, 03:29 AM
Hi,
Anyone has any ideas about How to open a form found in a VB.Net Dll in VB Project as an mdichild?
Thanks!
PramodsNair
September 17th, 2005, 05:11 AM
Dear Marlen,
First set the IsMdiConatainer property to TRUE for the MDI Parent Window.
Then add a reference to your required DLL.
create an New object referencing the required form in side the DLL.
set the new objects MdiParent property to the Parent forms object.
Set any other required parameters and call show on that object
Marlen
September 22nd, 2005, 03:07 AM
Thanks for your help but actually the Dll I want to open IN is in "VB6", the form is found in a "VB.Net Dll", any ideas?? and I want to load it as mdichild, the mdiform is in VB6 project.
PramodsNair
September 23rd, 2005, 05:54 AM
Dear marlen,
I am not sure, but i think, may be the below given article can be of help to you.
http://msdn.microsoft.com/vbrun/vbfusion/usingnet/default.aspx
It explains about using .NEt Dll's from VB 6. . Actually it's about using .NET Frame work class library but may be it can give you some idea's.
Pramod S Nair
Marlen
September 23rd, 2005, 08:23 AM
Thanks I will check it out
edburdo
September 26th, 2005, 10:35 AM
The above link to the MS website shows how to call a DLL in VB6. That same technique can be used in VBA.
However, it doesn't show anything about how to call a FORM from a .NET DLL in VB6 (or VBA).
Anyone have any links or examples of calling a form from a .NET dll in VB6?
MartinSW
October 11th, 2005, 04:32 AM
Hi Marlen, sorry I don't have a solution for you. I'm struggeling at the very same point and wondered whether you cracked the problem meanwhile.
Best Wishes Martin
Marlen
October 12th, 2005, 03:02 AM
Sorry,
I didn't find a solution for it yet, I'll definitely post it when I find it.
kdar20
January 31st, 2006, 04:26 AM
Hi Friends,
VBA can't add reference to a .NET assembly unless it is signed and registered in GAC so i suggest you to sign the DLL using strong name utility and add reference of it in Assemblyinfo.vb of the the .NET Dll project which will be like:-
<Assembly: AssemblyKeyFile("Path of snk file which has been created using strong name utility i.e. sn -k <name of assembly.snk>")
Then you might be able to open the form as you wanted.
Hope this might be helpful.
With warm regards,
KEDAR
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.