Monday, May 24, 2010

Any one tell me how to attach visual basic to other application?

I have been trying to connect visual basic to other application. but i don't know how to do so. please help me.

Any one tell me how to attach visual basic to other application?
You have used the Make command on the File menu to create an executable VB application.





-------------------


You can use either System.Diagnostic.Process Start("C:\myapp.exe")





or Shell("c:\Myapp.exe")


-------------------





To run another application from your application, use the


System.Diagnostics.Process class. It is not necessary to create an instance of the Process class to use it.





Simply pass a string containing the app you wish to run, to the process, as below:





Process.Start( "myapp.exe" );


__________________





..


Imports System.Diagnostics


..





Dim psi As New ProcessStartInfo()





psi.UseShellExecute = True


psi.FileName = "C:\bla.html"


Process.Start(psi)


_________________





Starting an application from C#:





If you want to start an application, you can simply call:





System.Diagnostics.Process.Start("C:\b...





Or, in VB.NET, call:





Shell("C:\bla.exe")
Reply:create exe of this vb applicatiion and u can call exe in vc++,.net and java too

flower bouquet

No comments:

Post a Comment