Click here to Skip to main content
15,915,867 members
Home / Discussions / C#
   

C#

 
Questionchange the name font when enter tab control Pin
donkaiser16-Jun-06 10:29
donkaiser16-Jun-06 10:29 
AnswerRe: change the name font when enter tab control Pin
Josh Smith16-Jun-06 11:29
Josh Smith16-Jun-06 11:29 
GeneralRe: change the name font when enter tab control Pin
donkaiser16-Jun-06 11:44
donkaiser16-Jun-06 11:44 
GeneralRe: change the name font when enter tab control Pin
Josh Smith17-Jun-06 4:17
Josh Smith17-Jun-06 4:17 
GeneralRe: change the name font when enter tab control Pin
donkaiser19-Jun-06 3:46
donkaiser19-Jun-06 3:46 
GeneralRe: change the name font when enter tab control Pin
donkaiser19-Jun-06 4:12
donkaiser19-Jun-06 4:12 
QuestionWindows Service&Installer -A mess Pin
Raghuraman_Ace16-Jun-06 9:20
Raghuraman_Ace16-Jun-06 9:20 
QuestionProgrammatically locate an application in the System Tray Pin
DP IGT16-Jun-06 8:17
DP IGT16-Jun-06 8:17 
Hello,

Can anyone tell me how I can locate a program that is minimized to the system tray. I know the Process Id of the application, but when I call Interaction.AppActivate using the process Id I get an ArgumentException exception. However, I don't know the title of the application to use the (Win32)FindWindow method.
Apparently programs that run in the system Tray can not be retrieved using this method. I am able to retrieve all other types of programs using this method.

Here is my code that locates the application and activates it to bring it to the front.
private void onLocateApplicationButtonClick(object sender, EventArgs e)<br />
{<br />
   // Get the app index from Tag data<br />
   if ((null != sender)<br />
      && (sender is Control)<br />
      && (null != ((Control)sender).Tag)<br />
      && (((Control)sender).Tag is int))<br />
   {<br />
      // Get the index of the Process in question<br />
      int app_index = (int)((Control)sender).Tag;<br />
<br />
      try<br />
      {<br />
         // Activate the process using the Process Id<br />
         Interaction.AppActivate(m_processes_list[app_index].Id);<br />
      }<br />
      catch (ArgumentException aex)<br />
      {<br />
         Console.WriteLine("{0}", aex.Message);<br />
      }<br />
   }<br />
}


Any one have a suggestion?

Thanks,
DP
AnswerRe: Programmatically locate an application in the System Tray Pin
BoneSoft16-Jun-06 9:51
BoneSoft16-Jun-06 9:51 
GeneralRe: Programmatically locate an application in the System Tray Pin
DP IGT16-Jun-06 10:55
DP IGT16-Jun-06 10:55 
QuestionProgrammatically getting system information using C# Pin
Cadence2.016-Jun-06 8:07
Cadence2.016-Jun-06 8:07 
AnswerRe: Programmatically getting system information using C# Pin
Josh Smith16-Jun-06 8:18
Josh Smith16-Jun-06 8:18 
GeneralRe: Programmatically getting system information using C# Pin
Cadence2.016-Jun-06 9:35
Cadence2.016-Jun-06 9:35 
QuestionComboBox Databinding Pin
Drew McGhie16-Jun-06 7:32
Drew McGhie16-Jun-06 7:32 
QuestionWord interop problem Pin
Amos_Keeto16-Jun-06 7:10
Amos_Keeto16-Jun-06 7:10 
AnswerRe: Word interop problem Pin
Dustin Metzgar16-Jun-06 7:57
Dustin Metzgar16-Jun-06 7:57 
GeneralRe: Word interop problem Pin
Amos_Keeto16-Jun-06 8:02
Amos_Keeto16-Jun-06 8:02 
GeneralRe: Word interop problem Pin
Dustin Metzgar16-Jun-06 8:11
Dustin Metzgar16-Jun-06 8:11 
GeneralRe: Word interop problem Pin
Amos_Keeto17-Jun-06 0:41
Amos_Keeto17-Jun-06 0:41 
QuestionIs there a way to consolidate this? Pin
Blubbo16-Jun-06 6:47
Blubbo16-Jun-06 6:47 
AnswerRe: Is there a way to consolidate this? Pin
Dustin Metzgar16-Jun-06 7:09
Dustin Metzgar16-Jun-06 7:09 
GeneralRe: Is there a way to consolidate this? Pin
RonBou16-Jun-06 7:19
RonBou16-Jun-06 7:19 
GeneralRe: Is there a way to consolidate this? Pin
RonBou16-Jun-06 7:33
RonBou16-Jun-06 7:33 
GeneralRe: Is there a way to consolidate this? Pin
Guffa16-Jun-06 8:41
Guffa16-Jun-06 8:41 
GeneralRe: Is there a way to consolidate this? [modified] Pin
Robert Rohde16-Jun-06 9:32
Robert Rohde16-Jun-06 9:32 

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.