Click here to Skip to main content
15,889,595 members
Home / Discussions / C#
   

C#

 
AnswerRe: Clean code in C# development Pin
OriginalGriff10-Jun-23 18:31
mveOriginalGriff10-Jun-23 18:31 
GeneralRe: Clean code in C# development Pin
Richard Andrew x6411-Jun-23 7:17
professionalRichard Andrew x6411-Jun-23 7:17 
GeneralRe: Clean code in C# development Pin
OriginalGriff11-Jun-23 8:32
mveOriginalGriff11-Jun-23 8:32 
GeneralRe: Clean code in C# development Pin
trønderen11-Jun-23 11:20
trønderen11-Jun-23 11:20 
QuestionGetting Google Contacts Pin
Kevin Marois6-Jun-23 16:46
professionalKevin Marois6-Jun-23 16:46 
AnswerRe: Getting Google Contacts Pin
OriginalGriff6-Jun-23 18:47
mveOriginalGriff6-Jun-23 18:47 
GeneralRe: Getting Google Contacts Pin
Kevin Marois7-Jun-23 5:51
professionalKevin Marois7-Jun-23 5:51 
AnswerRe: Getting Google Contacts Pin
Richard MacCutchan6-Jun-23 22:02
mveRichard MacCutchan6-Jun-23 22:02 
GeneralRe: Getting Google Contacts Pin
jschell7-Jun-23 5:19
jschell7-Jun-23 5:19 
GeneralRe: Getting Google Contacts Pin
Richard MacCutchan7-Jun-23 5:42
mveRichard MacCutchan7-Jun-23 5:42 
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 

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.