>Dear all
>
>I want to add a function in main prg file of a project that if user is clicking on icon of my exe file, function should check that exe file is allready running or not. If Exe file is allready Running function should give message to user that "Program is allready Running "
>
>please guide me to make above function.
>
Rajesh,
I wrote an article on this subject several years ago. Check
www.advisor.com and search on my name. You'll get all the information you need to create a "Single instance application".
I'd also recommend that you look at the FAQ section here where my late friend Ed Rauh accomplished the same thing using the event model.
Personally, his idea is better than mine.
George
Ubi caritas et amor, deus ibi est