Click here to Skip to main content
15,880,132 members
Home / Discussions / C#
   

C#

 
GeneralRe: Preventing multiple instances and associating file type Pin
Nouman Bhatti3-May-07 21:46
Nouman Bhatti3-May-07 21:46 
GeneralRe: Preventing multiple instances and associating file type Pin
Stefan Troschuetz3-May-07 21:56
Stefan Troschuetz3-May-07 21:56 
AnswerRe: Preventing multiple instances and associating file type Pin
jayart4-May-07 1:24
jayart4-May-07 1:24 
GeneralRe: Preventing multiple instances and associating file type Pin
Nouman Bhatti6-May-07 20:10
Nouman Bhatti6-May-07 20:10 
AnswerRe: Preventing multiple instances and associating file type Pin
justintimberlake4-May-07 1:57
justintimberlake4-May-07 1:57 
GeneralRe: Preventing multiple instances and associating file type Pin
Nouman Bhatti5-May-07 7:09
Nouman Bhatti5-May-07 7:09 
GeneralRe: Preventing multiple instances and associating file type Pin
justintimberlake5-May-07 19:16
justintimberlake5-May-07 19:16 
AnswerRe: Preventing multiple instances and associating file type Pin
AFSEKI7-May-07 3:39
AFSEKI7-May-07 3:39 
1) You can use a static variable in yoor program befor Application.Run(MainForm) like bool _isRunning = false as initial value and upate it in Form.Closed event to false. This idea is simple but not efficient, good and professional and secure.

2) You can store a registry key and check it before Application.Run(MainForm) to see if your application is already running or not. Better but not secure.

3) use Process.GetCurrentProcesses() method and do a search in the result set to check if your process exists. Much more reliable than all but you shoul have a unique process name.

hope this helps...
Questionhow to disable hyperlinks according to user roles? Pin
sirk153-May-07 20:58
sirk153-May-07 20:58 
AnswerRe: how to disable hyperlinks according to user roles? Pin
Sandeep Akhare3-May-07 22:21
Sandeep Akhare3-May-07 22:21 
AnswerRe: how to disable hyperlinks according to user roles? Pin
Jaiprakash M Bankolli3-May-07 22:29
Jaiprakash M Bankolli3-May-07 22:29 
Questionhow can i disable CTRL+ALT+DEL,ALT+F4 and ALT+TAb keys Pin
fgfdhghgfd3-May-07 20:45
fgfdhghgfd3-May-07 20:45 
AnswerRe: how can i disable CTRL+ALT+DEL,ALT+F4 and ALT+TAb keys Pin
Jon Hulatt3-May-07 21:02
Jon Hulatt3-May-07 21:02 
AnswerRe: how can i disable CTRL+ALT+DEL,ALT+F4 and ALT+TAb keys Pin
Vega024-May-07 22:01
Vega024-May-07 22:01 
AnswerRe: how can i disable CTRL+ALT+DEL,ALT+F4 and ALT+TAb keys Pin
AFSEKI7-May-07 3:42
AFSEKI7-May-07 3:42 
QuestionRegular Expresion Pin
Asif Mushtaq3-May-07 20:37
Asif Mushtaq3-May-07 20:37 
AnswerRe: Regular Expresion [modified] Pin
HerbCSO3-May-07 22:50
HerbCSO3-May-07 22:50 
GeneralRe: Regular Expresion Pin
HerbCSO3-May-07 23:33
HerbCSO3-May-07 23:33 
QuestionRe: Regular Expresion Pin
Asif Mushtaq4-May-07 0:12
Asif Mushtaq4-May-07 0:12 
AnswerRe: Regular Expresion Pin
HerbCSO4-May-07 0:46
HerbCSO4-May-07 0:46 
JokeRe: Regular Expresion Pin
Asif Mushtaq4-May-07 0:51
Asif Mushtaq4-May-07 0:51 
QuestionRequesting WebPage using TCPClient Pin
SakthiSurya3-May-07 19:27
SakthiSurya3-May-07 19:27 
AnswerRe: Requesting WebPage using TCPClient Pin
SakthiSurya3-May-07 21:48
SakthiSurya3-May-07 21:48 
AnswerRe: Requesting WebPage using TCPClient Pin
Herman<T>.Instance3-May-07 23:29
Herman<T>.Instance3-May-07 23:29 
GeneralRe: Requesting WebPage using TCPClient Pin
SakthiSurya4-May-07 2:18
SakthiSurya4-May-07 2:18 

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.