Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 Other Development Tools
 Run C# application in VB6.0

Author  Topic 

amirs
Constraint Violating Yak Guru

260 Posts

Posted - 2008-10-18 : 07:03:43
Hi

how excute the C# Application in vb6.0

thanks

afrika
Master Smack Fu Yak Hacker

2706 Posts

Posted - 2008-10-18 : 07:07:27
Elaborate please. But...

vb 6.0 runs on visual basic. Which is a totally different ball game from the .net framework.

the .net framework runs both vb.net and c# and any other complaint language.
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-10-18 : 07:47:11
i think op was asking for converting code from C# to VB .NET.
Go to Top of Page

afrika
Master Smack Fu Yak Hacker

2706 Posts

Posted - 2008-10-18 : 08:35:20
vb 6.0 is visual basic

vb.net is a totally different animal, in every way.

if thats the case
http://www.newcode.com/vb_to_csharp.aspx?gclid=CI-sqNLksJYCFQyvQwod_w4SLw
http://www.tangiblesoftwaresolutions.com/?gclid=CJbc6dPksJYCFQs4Qgodhx1aLw

http://www.developerfusion.com/tools/convert/vb-to-csharp/
http://www.elegancetech.com/CSVB/CSVB.aspx?src=12
Go to Top of Page

amirs
Constraint Violating Yak Guru

260 Posts

Posted - 2008-10-20 : 23:28:20
i am not migrate vb6.0 to C#. I have genarete C# application of window base and i have call this applcation in vb6.0 . i use shell command. but shell command is not worked
Go to Top of Page

cvraghu
Posting Yak Master

187 Posts

Posted - 2008-10-21 : 01:29:39
I'm not sure why its not working for you. Did you give the full path to the exe? Here is the syntax -

Shell ( full path to app, window mode)

ex. Shell c:\test.exe, vbMaximizedFocus

Go to Top of Page

amirs
Constraint Violating Yak Guru

260 Posts

Posted - 2008-10-21 : 01:52:46
this is correct to call vb.exe but i have call c# applcation in vb6.0
Go to Top of Page

cvraghu
Posting Yak Master

187 Posts

Posted - 2008-10-21 : 07:46:45
VB.Net or C# does not matter. Both are applications. You can invoke any application using Shell command.
Go to Top of Page

amirs
Constraint Violating Yak Guru

260 Posts

Posted - 2008-10-22 : 01:19:15
i have use following path to invoke the application
Shell ("path\appname.application")
but error message is "invalid procedure call or arguments"
Go to Top of Page

cvraghu
Posting Yak Master

187 Posts

Posted - 2008-10-22 : 01:47:29
The error message is very clear! Why are you not passing the second parameter? Did you see the example i mentioned in my post. Or please google Shell and see how its used.
Go to Top of Page
   

- Advertisement -