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?
 
You can just add refernce in project at VS.NET->Project->Reference

Jhin-Seok.
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top