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

C#

 
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 
AnswerRe: Programmatically locate an application in the System Tray Pin
BoneSoft16-Jun-06 9:51
BoneSoft16-Jun-06 9:51 
Maybe this will give you a head start, ignore the custom types referenced that aren't included in this code. If you have the process id, you should be able to identify it while looping through all processes. You'll probably need to use the CaptureWindowless() example.


C#
using System;
using System.Diagnostics;
using System.ComponentModel;
using System.Runtime.InteropServices;
using BoneSoft.LinksLibrary;

namespace LinksLibrarian2 {
    public class ProcessCapturer {
        static ProcessCapturer() {}

        public static ShortCuts CaptureWindows() {
            ShortCuts scs = new ShortCuts();
            scs.AddRange(CaptureFolders());
            scs.AddRange(CaptureIEs());
            Process[] localAll = Process.GetProcesses();
            foreach (Process p in localAll) {
                try {
                    if (p.MainWindowTitle.Equals(string.Empty)) { continue; }
                    ShortCut esc = null;
                    esc = new ExeShortCut(p.MainWindowTitle, p.MainModule.FileName);
                    if (esc == null) { continue; }
                    esc.Description = p.ProcessName;
                    scs.Add(esc);
                } catch {}
            }
            return scs;
        }

        public static ShortCuts CaptureWindowless() {
            ShortCuts scs = new ShortCuts();
            Process[] localAll = Process.GetProcesses();
            foreach (Process p in localAll) {
                try {
                    if (!p.MainWindowTitle.Equals(string.Empty)) { continue; }
                    ShortCut esc = null;
                    esc = new ExeShortCut(p.ProcessName, p.MainModule.FileName);
                    if (esc == null) { continue; }
                    esc.Description = p.ProcessName;
                    scs.Add(esc);
                } catch {}
            }
            return scs;
        }
    }
}


Visit BoneSoft.com
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 
GeneralRe: Is there a way to consolidate this? [modified] Pin
Blubbo16-Jun-06 9:48
Blubbo16-Jun-06 9:48 

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.