Create a com object to call a Winform

  • Thread starter Thread starter William Gower
  • Start date Start date
W

William Gower

I need to create a com object that displays a Winform. This com object will
be referenced from a VB 6 app.
 
Ok since last time, I have create a form in VS .net called frmOrganize. I
created a class

Public Class Organize

Dim FrmOrganize1 As FrmOrganize

public sub new
end sub

public sub Show
FrmOrganize1.Show
end sub
end class

I build a dll. I use regasm to register it and it is registered as
Myproject.Organize

In VB6, I add a reference to the .tlb.

I then call

dim frm
set frm = Myproject.Organize
frm.show

I get the error cannot create a file when the file already exists. What am
I doing wrong?
 
Back
Top