|
-
Jun 30th, 2006, 10:51 PM
#1
Thread Starter
Addicted Member
How to show Window Task Manager
How can I use VB Code to show Window Task Manager? Thanks.
-
Jun 30th, 2006, 11:09 PM
#2
Re: How to show Window Task Manager
VB Code:
Option Explicit
Private Sub Command1_Click()
Shell "taskmgr.exe", vbNormalFocus
End Sub
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jun 30th, 2006, 11:29 PM
#3
Re: How to show Window Task Manager
When you have received an answer to your question, please mark it as Resolved using the Thread Tools menu.
-
Jun 30th, 2006, 11:48 PM
#4
Thread Starter
Addicted Member
Re: How to show Window Task Manager
I do not have privilege to show Windows Task manager(lock my administrator). But sometime my computer got stuck so I want to end process some applications. Is there any API function to do show Windows Task Manager? Thanks.
-
Jul 1st, 2006, 01:03 AM
#5
Re: How to show Window Task Manager
You can write code to terminate a process without using taskmanager. Search for "Terminate + Process" on the forums. I have some code as well as others.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jul 1st, 2006, 01:20 AM
#6
PowerPoster
Re: How to show Window Task Manager
VB Code:
Private Sub Command1_Click()
TerminateProcess ("WINWORD.EXE")
End Sub
Private Sub TerminateProcess(app_exe As String)
Dim Process As Variant
For Each Process In GetObject("winmgmts:").ExecQuery("Select Name from Win32_Process Where Name = '" & app_exe & "'")
Process.Terminate
Next
End Sub
-
Jul 1st, 2006, 01:38 AM
#7
Re: How to show Window Task Manager
But if his system is locked down then odds are that WMI is also disabled.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jul 1st, 2006, 01:44 AM
#8
PowerPoster
Re: How to show Window Task Manager
True ... then he shouldnt be messing with it
-
Jul 1st, 2006, 01:51 AM
#9
Re: How to show Window Task Manager
True but only after we know the truth.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jul 1st, 2006, 03:47 AM
#10
Junior Member
Re: How to show Window Task Manager
also open a command prompt and type
taskkill /?
for the help on how to use taskkill, usualy something like
TASKKILL /f /im Progname.exe
dont konw if youll have the privs for this either, but worth a try
-
Jul 1st, 2006, 04:02 AM
#11
Junior Member
Re: How to show Window Task Manager
sorry,
in my above it is of course a shell command eg
SHELL("TASKKILL /f /im Progname.exe")
dont for get to put double quotes arround the bits in the brakets, or put this string into a variable (you send a string to the SHELL)
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
|