Click here to Skip to main content
15,662,426 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
Hi everyone,

When i click on 1 process do some work then click on back, again when i click on same process then the process is not refreshed. I mean to say when the process is clicked for 2nd time then debug is not working for page load.
So for page load or for refresh, what i suppose to do?

Can anyone help me with the code.


Thanks in advance.
Posted
Updated 24-May-11 19:49pm
v2
Comments
cuteband 25-May-11 1:31am    
Not Clear. Explain further
Sergey Alexandrovich Kryukov 25-May-11 1:40am    
Not clear, but pointing to MSDN is enough -- there is only one way (well, except P/Invoke, but why?)
See my answer.
--SA

Hi I am using this code to kill unwanted process when my computer starts.
VB
Dim processList() As Process
processList = Process.GetProcessesByName("PName")
For Each proc As Process In processList
    proc.Kill()
Next

If I want to kill Explorer.exe process then write Explorer in place of PName

Thank You
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 25-May-11 3:57am    
By name?!!! You can kill something that accidentally has this name. This is called a war against the user. Also, this is not the OP's concern. Bad idea, my 3.
--SA
This question practically contains the answer: call System.Diagnostics.Process.Kill. See http://msdn.microsoft.com/en-us/library/system.diagnostics.process.aspx[^].

—SA
 
Share this answer
 
Comments
Saumyavemula 25-May-11 1:54am    
Hi,
I wrote the code System.Diagnostics.Process.GetCurrentProcess.Kill(), but i am getting an error "The remote connection to the device is lost, Please connect the device" whereas my connection to the device is alright.
Sergey Alexandrovich Kryukov 25-May-11 3:56am    
So what? You asked how to kill... Was it killed on not?
Listen, kill is the last resort. When you really need to kill, it means you're in deep trouble.
Assume you don't need to kill but address the root of the problem. Try to solve it and then ask a different question.

And please formally accept my answer -- I answered precisely.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900