I have a VB application that has a few screens.
Is there a way in C# to run this application and call one of it'screens?
Printable View
I have a VB application that has a few screens.
Is there a way in C# to run this application and call one of it'screens?
What do you mean by 'run this application and call one of it'screens' ?
I mean't actually invoking the VB application from with C#, then intead of the user opening forms from within the VB application, just have say a button on a C# Windows App and then the C# windows app shows the VB screen.
I have though about building a COM component wrapper around my VB App and then incorporating the COM component in C# in interop mode and that way I can go through my COM component to do whatever I like in the VB program.
What do you think?
Umm , if the app is exe , then you can use process.start(yourapp) to run it . Otherwise , I'm afraid I don't know much about it and I've never worked on such stuff , so sorry I can't help you furthur .
Luck .:)
Yes, you can do it if I understand you right. First, you need to compile your VB.Net application.
In your C# application, you need to reference the above dll.
Now, create a new form from that dll like you would any other form, just it is in a different namespace.
I think he means VB6 not VB.NET (I think) , if he means VB.NET , then he can use C# forms directly .
Yes, I meant an old VB6 app.
I worked out how to do this using COM so all is cool. :)
Thanks anyway guys.