Click here to Skip to main content
15,884,177 members
Home / Discussions / C#
   

C#

 
AnswerRe: Read specific bytes continually from a file Pin
Patrice T15-Apr-16 20:04
mvePatrice T15-Apr-16 20:04 
QuestionInitiate properties at the creation of the object. Pin
Gilbert Consellado15-Apr-16 0:14
professionalGilbert Consellado15-Apr-16 0:14 
AnswerRe: Initiate properties at the creation of the object. Pin
Pete O'Hanlon15-Apr-16 0:36
mvePete O'Hanlon15-Apr-16 0:36 
QuestionJenkins (+MSBuild) not building my .specs dll (just building the start up project) Pin
Alaric_14-Apr-16 10:19
professionalAlaric_14-Apr-16 10:19 
AnswerRe: Jenkins (+MSBuild) not building my .specs dll (just building the start up project) Pin
Alaric_14-Apr-16 11:02
professionalAlaric_14-Apr-16 11:02 
GeneralHow to kill app that has the same name as the current one? Pin
Nemo196614-Apr-16 8:09
Nemo196614-Apr-16 8:09 
GeneralRe: How to kill app that has the same name as the current one? Pin
Eddy Vluggen14-Apr-16 8:22
professionalEddy Vluggen14-Apr-16 8:22 
GeneralRe: How to kill app that has the same name as the current one? Pin
Dave Kreskowiak14-Apr-16 8:23
mveDave Kreskowiak14-Apr-16 8:23 
Get all the Process instances for your app name using Process.GetProcessesByName(). Then using the Process.GetCurrentProcess() method, the newly run instance of your app will have access to it's own Id. Go through the collection of Process objects you got and kill each one that doesn't have the same Id.

Documentation on the Process class can be found here[^].
A guide to posting questions on CodeProject

Click this: Asking questions is a skill.
Seriously, do it.

Dave Kreskowiak

GeneralRe: How to kill app that has the same name as the current one? Pin
OriginalGriff14-Apr-16 8:35
mveOriginalGriff14-Apr-16 8:35 
GeneralRe: How to kill app that has the same name as the current one? Pin
Nemo196614-Apr-16 8:59
Nemo196614-Apr-16 8:59 
GeneralRe: How to kill app that has the same name as the current one? Pin
Dave Kreskowiak14-Apr-16 9:29
mveDave Kreskowiak14-Apr-16 9:29 
GeneralRe: How to kill app that has the same name as the current one? Pin
OriginalGriff14-Apr-16 20:22
mveOriginalGriff14-Apr-16 20:22 
QuestionDB2 Load command with LOBS not loading full records Pin
Tej_dev14-Apr-16 7:46
Tej_dev14-Apr-16 7:46 
AnswerRe: DB2 Load command with LOBS not loading full records Pin
Chris Quinn14-Apr-16 21:11
Chris Quinn14-Apr-16 21:11 
Questionselenium sendkeys Pin
Jonahweird14-Apr-16 7:34
Jonahweird14-Apr-16 7:34 
AnswerRe: selenium sendkeys Pin
Dave Kreskowiak14-Apr-16 8:01
mveDave Kreskowiak14-Apr-16 8:01 
GeneralRe: selenium sendkeys Pin
Jonahweird14-Apr-16 8:12
Jonahweird14-Apr-16 8:12 
GeneralRe: selenium sendkeys Pin
Dave Kreskowiak14-Apr-16 8:19
mveDave Kreskowiak14-Apr-16 8:19 
GeneralRe: selenium sendkeys Pin
Jonahweird14-Apr-16 8:26
Jonahweird14-Apr-16 8:26 
GeneralRe: selenium sendkeys Pin
Dave Kreskowiak14-Apr-16 8:35
mveDave Kreskowiak14-Apr-16 8:35 
GeneralRe: selenium sendkeys Pin
Jonahweird14-Apr-16 8:39
Jonahweird14-Apr-16 8:39 
GeneralRe: selenium sendkeys Pin
Dave Kreskowiak14-Apr-16 9:24
mveDave Kreskowiak14-Apr-16 9:24 
PraiseRe: selenium sendkeys Pin
Jonahweird14-Apr-16 11:17
Jonahweird14-Apr-16 11:17 
Questioncreate web Application are license key based Pin
Arvind Zamakia14-Apr-16 3:40
Arvind Zamakia14-Apr-16 3:40 
AnswerRe: create web Application are license key based Pin
ZurdoDev14-Apr-16 3:50
professionalZurdoDev14-Apr-16 3:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.