CuriousRK
CuriousRK

Reputation: 69

Communication b/w c# and vb6 App

We have legacy VB6 Application and we are trying to move this to C#. As phase one we have created starting Form in C#(with similar controls) and want this C# app to communicate with VB6 starting form so that when user clicks on c# form it will initiate button click event on VB6 Starting form(which we wants it to be hidden) They both share same database, could some one please give me an idea about how we can achieve this or is there any other way. Thanks

Upvotes: 2

Views: 122

Answers (1)

MarkJ
MarkJ

Reputation: 30398

This can be a good idea if the VB6 code is too large to completely rewrite from scratch. You can split the VB6 into separate DLLs and then replace the DLLs piecemeal with C# DLLs using COM-interop so that VB6 and C# talk to each other.

For instance have a look at some of the answers to this question

Upvotes: 1

Related Questions