How do i access a VB6dll in C#

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to get my C# program to access an from in an older VB6 dll. How would I go about doing this?
 
Charles,

You are right, the Form is not a class (or rather, it is not exported as
a class). In order to access functionality on the form, you will have to
create an interface which the form implements, and then have another class
return the form (cast as the interface).

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Charles said:
I did that already, but i still can get to the from I guess becasue it is
not a class
 
Back
Top