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

C#

 
GeneralRe: Getting Google Contacts Pin
Kevin Marois7-Jun-23 5:53
professionalKevin Marois7-Jun-23 5:53 
GeneralRe: Getting Google Contacts Pin
Richard MacCutchan7-Jun-23 6:09
mveRichard MacCutchan7-Jun-23 6:09 
GeneralRe: Getting Google Contacts Pin
Kevin Marois7-Jun-23 7:00
professionalKevin Marois7-Jun-23 7:00 
GeneralRe: Getting Google Contacts Pin
jschell8-Jun-23 6:53
jschell8-Jun-23 6:53 
GeneralRe: Getting Google Contacts Pin
Richard MacCutchan8-Jun-23 8:01
mveRichard MacCutchan8-Jun-23 8:01 
AnswerRe: Getting Google Contacts Pin
OriginalGriff6-Jun-23 23:33
mveOriginalGriff6-Jun-23 23:33 
AnswerRe: Getting Google Contacts Pin
Gerry Schmitz7-Jun-23 3:24
mveGerry Schmitz7-Jun-23 3:24 
QuestionProcess.Start() Default Browser and Detect Close Pin
Kevin Marois6-Jun-23 13:46
professionalKevin Marois6-Jun-23 13:46 
I need to open the default browser with Process.Start(), and I need to know if the user has cancelled or closed the process/browser.

I can detect a cancel via the callback URL, but I can't seem to get Exited to work.
public class Program
{
    public static void Main(string[] args)
    {
        var proc = Process.Start("www.codeproject.com");
        proc.Exited += Program_Exited;
        proc.WaitForExit();

        Console.ReadLine();
    }

    private static void Program_Exited(object sender, EventArgs e)
    {
        // Never fires
    }
}

What's the right way to handle this?
In theory, theory and practice are the same. But in practice, they never are.”
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.


modified 6-Jun-23 20:00pm.

AnswerRe: Process.Start() Default Browser and Detect Close Pin
Richard Andrew x646-Jun-23 14:56
professionalRichard Andrew x646-Jun-23 14:56 
GeneralRe: Process.Start() Default Browser and Detect Close Pin
Kevin Marois6-Jun-23 17:07
professionalKevin Marois6-Jun-23 17:07 
AnswerRe: Process.Start() Default Browser and Detect Close Pin
Richard Deeming6-Jun-23 21:46
mveRichard Deeming6-Jun-23 21:46 
AnswerRe: Process.Start() Default Browser and Detect Close Pin
jschell7-Jun-23 5:23
jschell7-Jun-23 5:23 
QuestionI've fumbled and bumbled my way though being able to read an rtsp stream, I've learned how to capture frames and Pin
Vượng Phát Nội thất4-Jun-23 16:37
Vượng Phát Nội thất4-Jun-23 16:37 
AnswerRe: I've fumbled and bumbled my way though being able to read an rtsp stream, I've learned how to capture frames and Pin
Pete O'Hanlon4-Jun-23 21:13
mvePete O'Hanlon4-Jun-23 21:13 
GeneralRe: I've fumbled and bumbled my way though being able to read an rtsp stream, I've learned how to capture frames and Pin
Richard Deeming4-Jun-23 21:42
mveRichard Deeming4-Jun-23 21:42 
QuestionSaving Data from a dynamically created form Pin
Member 136122631-Jun-23 11:41
Member 136122631-Jun-23 11:41 
AnswerRe: Saving Data from a dynamically created form Pin
Gerry Schmitz1-Jun-23 16:21
mveGerry Schmitz1-Jun-23 16:21 
GeneralRe: Saving Data from a dynamically created form Pin
Member 136122632-Jun-23 3:42
Member 136122632-Jun-23 3:42 
GeneralRe: Saving Data from a dynamically created form Pin
Gerry Schmitz2-Jun-23 4:39
mveGerry Schmitz2-Jun-23 4:39 
QuestionRe: Saving Data from a dynamically created form Pin
Ralf Meier2-Jun-23 4:40
mveRalf Meier2-Jun-23 4:40 
AnswerRe: Saving Data from a dynamically created form Pin
jschell2-Jun-23 11:32
jschell2-Jun-23 11:32 
AnswerRe: Saving Data from a dynamically created form Pin
OriginalGriff2-Jun-23 19:56
mveOriginalGriff2-Jun-23 19:56 
Questionimplementing the system tray for my C# login app Pin
Shylaja D30-May-23 23:49
Shylaja D30-May-23 23:49 
GeneralRe: implementing the system tray for my C# login app Pin
harold aptroot31-May-23 0:13
harold aptroot31-May-23 0:13 
QuestionHello, I have a question. Can I design programs with a graphical interface in C#, Dot Net Core technology, and these programs work on the DOS operating system, such as Norton Ghost Bragg? Thank you. Pin
Hero2016 Elmaghraby30-May-23 6:39
Hero2016 Elmaghraby30-May-23 6: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.