A
Antonio Paglia
I would wish to be able to open an existing VB6 Form from my VB.NET
application.
All VB6 forms are in COM dll. My COM dll expose a Public Class with a method
that return an instance of my VB6 form.
I have used tlbimp.exe utility to generate a RCW.(wrapper). The wrapper name
is SecurityNet
Dim objApplication As New SecurityNet.Application
Dim FormVB6 As Object
Dim FormNET As Form
FormVB6 = objApplication.GetMDIChild("frmUsers")
FormNET = CType(FVB6, Form) ---------------------------------> I get an
error: Conversion is not valid
FormNET.Show
Any help will be appreciated
TIA
Antonio
application.
All VB6 forms are in COM dll. My COM dll expose a Public Class with a method
that return an instance of my VB6 form.
I have used tlbimp.exe utility to generate a RCW.(wrapper). The wrapper name
is SecurityNet
Dim objApplication As New SecurityNet.Application
Dim FormVB6 As Object
Dim FormNET As Form
FormVB6 = objApplication.GetMDIChild("frmUsers")
FormNET = CType(FVB6, Form) ---------------------------------> I get an
error: Conversion is not valid
FormNET.Show
Any help will be appreciated
TIA
Antonio