הערה
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות להיכנס או לשנות מדריכי כתובות.
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות לשנות מדריכי כתובות.
Question
Monday, May 12, 2008 3:05 AM
Has anyone know how to do call "calculator" application thru vb net?
Thanks in advance.
All replies (8)
Monday, May 12, 2008 4:57 AM ✅Answered
Hi,
Use this code:
Code Snippet
System.Diagnostics.Process.Start("calc")
or
System.Diagnostics.Process.Start("C:\Windows\system32\calc.exe")
HTH,
Suprotim Agarwal
Tuesday, May 13, 2008 2:05 AM ✅Answered
Hi,
Yes.
Code Snippet
System.Diagnostics.Process.Start("calc.exe")
System.Diagnostics.Process.Start("taskmgr.exe")
HTH,
Suprotim Agarwal
Tuesday, May 13, 2008 3:20 AM ✅Answered
Hi,
Here you go:
Code Snippet
System.Diagnostics.Process.Start("excel.exe")
HTH,
Suprotim Agarwal
Monday, May 12, 2008 6:22 AM
Thanks for the reply, just wonder, do I need to import any namespace?
Monday, May 12, 2008 8:08 AM
Hi,
The namespace is System.Diagnostics. So if you import that then you do not have to fully qualify the code block. Just use Process.Start()
HTH,
Suprotim Agarwal
Tuesday, May 13, 2008 1:18 AM
Thanks Suprotim.
I just want to ask, is it the same if we want to call tskmgr.exe (Task Manager) or notepad?
Or it has its own way?
Tuesday, May 13, 2008 2:53 AM
Thanks a lot..
is it still the same if I want to call Microsoft Office excel application from vb net?
I am just curious about that.
Tuesday, May 13, 2008 4:36 AM
Thanks again.