What would the code be (to put into a button) for opening another application
I need to launch the calculator....located at:
C:\WINDOWS\system32\calc.exe
This is what I have so far...
Private Sub Command1_Click()
Process.start (calc.exe)
End Sub
But this always gives me "Run-time error '424': Object Required
I'm using Visual Basic 6.0
thanks if you can help

Opening Other Applications
Mateusz Rajca
Process.Start is the way you would do it in VB.NET, to get this to work in VB6 you want to do this:
Private Sub Command1_Click()
Dim x As Integer
x = Shell("c:\Windows\sytem32\calc.exe")
End Sub
Hope that helps,
Jonathan
.net sukbir
You should download a copy of VB Express and start using .NET
Its Free !!!, Its 8+ years newer technology than VB6, You'll get assistance in these forums on any questions you have and did I mention its free.
UnknownScripter
to open calculator in vb6 application please do the follwing
shell("calc.exe),vbmaximizedfocus
Nisa
From http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=478161&SiteID=1
funny!, why you don't want to take a tour about itBest regards,
Moayad Mardini,
MSDN Forums Moderator
Parceval
thanks a bunch man, it worked
thanks again!!!