|
-
Sep 15th, 2003, 04:33 AM
#1
Thread Starter
Member
Running a VB screen from C#
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?
-
Sep 15th, 2003, 07:42 AM
#2
Sleep mode
What do you mean by 'run this application and call one of it'screens' ?
-
Sep 15th, 2003, 08:32 AM
#3
Thread Starter
Member
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?
-
Sep 15th, 2003, 08:44 AM
#4
Sleep mode
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 .
-
Sep 15th, 2003, 10:42 AM
#5
PowerPoster
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.
-
Sep 15th, 2003, 10:50 AM
#6
Sleep mode
I think he means VB6 not VB.NET (I think) , if he means VB.NET , then he can use C# forms directly .
-
Sep 15th, 2003, 11:07 AM
#7
Thread Starter
Member
Yes, I meant an old VB6 app.
I worked out how to do this using COM so all is cool. 
Thanks anyway guys.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|