Click here to Skip to main content
16,006,013 members
Home / Discussions / C#
   

C#

 
GeneralRe: adding data in drop down from database Pin
ursbuddy21-Dec-06 22:39
ursbuddy21-Dec-06 22:39 
GeneralRe: adding data in drop down from database Pin
albCode21-Dec-06 22:43
albCode21-Dec-06 22:43 
AnswerRe: adding data in drop down from database Pin
il_masacratore21-Dec-06 21:38
il_masacratore21-Dec-06 21:38 
GeneralRe: adding data in drop down from database Pin
ursbuddy21-Dec-06 22:38
ursbuddy21-Dec-06 22:38 
QuestionSingle Instance Pin
AB777121-Dec-06 19:07
AB777121-Dec-06 19:07 
AnswerRe: Single Instance Pin
Kodanda Pani21-Dec-06 19:16
Kodanda Pani21-Dec-06 19:16 
GeneralRe: Single Instance Pin
AB777121-Dec-06 21:28
AB777121-Dec-06 21:28 
AnswerRe: Single Instance Pin
S. Senthil Kumar22-Dec-06 19:37
S. Senthil Kumar22-Dec-06 19:37 
Does the shortcut point to the actual application or the "launcher" application? Either way, you could check for the existence of the process first off and switch focus to it if you find it running. Something like
bool IsProcessAlreadyRunning(string processName)
{
   Process[] processes = Process.GetProcesses(processName);
   return (processes != null && processes.Length != 0);
}


If the above method returns true, you know that an instance of the process is already running. You could then use the MainWindowHandle[^] of the corresponding Process object to get the window handle and P/Invoke some Win32 API (Activate?) to bring the existing process' window into focus.

Hope this helps.

Regards
Senthil [MVP - Visual C#]
_____________________________
My Blog | My Articles | My Flickr | WinMacro

QuestionVirtual storage drive like GDrive( Google virtual drive) Pin
Kiran Beladiya21-Dec-06 18:36
professionalKiran Beladiya21-Dec-06 18:36 
AnswerRe: Virtual storage drive like GDrive( Google virtual drive) Pin
Thomas Stockwell22-Dec-06 13:40
professionalThomas Stockwell22-Dec-06 13:40 
GeneralRe: Virtual storage drive like GDrive( Google virtual drive) Pin
Kiran Beladiya22-Dec-06 17:30
professionalKiran Beladiya22-Dec-06 17:30 
QuestionMultiple Toolstrips(toolbars) under menustrip(menubar) can be drag dropped anywhere Pin
GunaChinna21-Dec-06 18:28
GunaChinna21-Dec-06 18:28 
AnswerRe: Multiple Toolstrips(toolbars) under menustrip(menubar) can be drag dropped anywhere Pin
GunaChinna21-Dec-06 22:42
GunaChinna21-Dec-06 22:42 
QuestionHow to calculate the difference between two dates Ignoring Weekends ? Pin
KhaledK21-Dec-06 14:48
KhaledK21-Dec-06 14:48 
AnswerRe: How to calculate the difference between two dates Ignoring Weekends ? Pin
Paul Conrad25-Dec-06 18:34
professionalPaul Conrad25-Dec-06 18:34 
Questionhow to convert string to utf-8 string in asp.net ? Pin
hdv21221-Dec-06 12:10
hdv21221-Dec-06 12:10 
AnswerRe: how to convert string to utf-8 string in asp.net ? Pin
Guffa21-Dec-06 21:29
Guffa21-Dec-06 21:29 
QuestionQuestion about Find Control Pin
MyRunner21-Dec-06 11:33
MyRunner21-Dec-06 11:33 
AnswerRe: Question about Find Control Pin
Mark Pryce-Maher22-Dec-06 2:22
Mark Pryce-Maher22-Dec-06 2:22 
QuestionIE Browser Helper Object - how to get clicked text/word? Pin
Tommy Svensson21-Dec-06 10:54
Tommy Svensson21-Dec-06 10:54 
Questionserver side coding in C# Pin
Tina P21-Dec-06 10:24
Tina P21-Dec-06 10:24 
AnswerRe: server side coding in C# Pin
led mike21-Dec-06 11:32
led mike21-Dec-06 11:32 
AnswerRe: server side coding in C# Pin
Christian Graus21-Dec-06 12:40
protectorChristian Graus21-Dec-06 12:40 
QuestionWhich logging library to use? Pin
chafey21-Dec-06 8:04
chafey21-Dec-06 8:04 
AnswerRe: Which logging library to use? Pin
Ravi Bhavnani21-Dec-06 8:39
professionalRavi Bhavnani21-Dec-06 8:39 

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.