Good morning.
I created a .NET Interop Form using the Microsoft InteropForms Toolkit 2.1. This form contains a .NET Interop Control with a view created at runtime. This UserControl MUST stay inside a .NET form. Moreover, I can't call the .NET form directly in my VB6 project because I've got a simulated MDI that requires VB6 forms... So I had to create the .NET form inside a VB6 form...
This is the code I used:
The problem is that I can't insert text in other "MDI child forms" when I open the one incorporating the .NET form (not even after closing this latter). If I use ShowDialog instead of Show it works, but obviously this is not acceptable in an MDI application. The problem is not related to SetParent, it still remains if I comment that instruction.
Thank you in advance :) .
I created a .NET Interop Form using the Microsoft InteropForms Toolkit 2.1. This form contains a .NET Interop Control with a view created at runtime. This UserControl MUST stay inside a .NET form. Moreover, I can't call the .NET form directly in my VB6 project because I've got a simulated MDI that requires VB6 forms... So I had to create the .NET form inside a VB6 form...
This is the code I used:
Code:
'START .NET INTEROP FORM
Set NETForm = New NETInteropForm
NETForm.CreateControl
NETForm.FormBorderStyle = NONE
NETForm.WindowState = vbMaximized
NETForm.Initialize param1, param2
NETForm.OpenView viewName
SetParent FrmFermiPerOper.Handle, Me.hWnd
FrmFermiPerOper.Show
'END .NET INTEROP FORM
Thank you in advance :) .