Click here to Skip to main content
15,890,512 members
Home / Discussions / C#
   

C#

 
QuestionC# Dialer Application Pin
Ashwani_kumar1-May-06 3:49
Ashwani_kumar1-May-06 3:49 
QuestionC# GDI+ Pin
codebala1-May-06 3:31
codebala1-May-06 3:31 
AnswerRe: C# GDI+ Pin
Josh Smith1-May-06 4:03
Josh Smith1-May-06 4:03 
GeneralRe: C# GDI+ Pin
codebala1-May-06 5:29
codebala1-May-06 5:29 
GeneralRe: C# GDI+ Pin
codebala1-May-06 7:08
codebala1-May-06 7:08 
AnswerRe: C# GDI+ Pin
kasik1-May-06 5:13
kasik1-May-06 5:13 
GeneralRe: C# GDI+ Pin
codebala1-May-06 5:22
codebala1-May-06 5:22 
QuestionDifferent exception handling behavior when running application in standalone mode instead of from visual studio Pin
Dan Neely1-May-06 3:23
Dan Neely1-May-06 3:23 
I have a try/catch block in the main method of my app that's designed to handle any fatal exceptions and shut the program down with a useful error message. If I run my program in visual studio it functions as designed, but if started directly the framework catches it and shows the unhandled exception dialog with details, continue, and quit. The code below demostrates the problem.

static void Main()
{
    try
    {
        Application.Run(new Form1());
    }
    catch (System.Exception e)
    {
        MessageBox.Show(e.Message);
    }
}

private void button1_Click(object sender, System.EventArgs e)
{
    throw new System.Exception("test");
}

AnswerRe: Different exception handling behavior when running application in standalone mode instead of from visual studio Pin
Drew McGhie1-May-06 4:45
Drew McGhie1-May-06 4:45 
GeneralRe: Different exception handling behavior when running application in standalone mode instead of from visual studio Pin
Dan Neely1-May-06 5:08
Dan Neely1-May-06 5:08 
GeneralRe: Different exception handling behavior when running application in standalone mode instead of from visual studio Pin
S. Senthil Kumar1-May-06 7:03
S. Senthil Kumar1-May-06 7:03 
AnswerRe: Different exception handling behavior when running application in standalone mode instead of from visual studio Pin
Roy Heil1-May-06 7:50
professionalRoy Heil1-May-06 7:50 
GeneralRe: Different exception handling behavior when running application in standalone mode instead of from visual studio Pin
Dan Neely1-May-06 9:29
Dan Neely1-May-06 9:29 
GeneralRe: Different exception handling behavior when running application in standalone mode instead of from visual studio Pin
Roy Heil1-May-06 18:14
professionalRoy Heil1-May-06 18:14 
GeneralRe: Different exception handling behavior when running application in standalone mode instead of from visual studio Pin
Dan Neely2-May-06 2:55
Dan Neely2-May-06 2:55 
GeneralRe: Different exception handling behavior when running application in standalone mode instead of from visual studio Pin
Dan Neely2-May-06 4:45
Dan Neely2-May-06 4:45 
QuestionHow to create dynamic empty string array Pin
WCup1-May-06 0:38
WCup1-May-06 0:38 
AnswerRe: How to create dynamic empty string array Pin
Larantz1-May-06 0:42
Larantz1-May-06 0:42 
GeneralRe: How to create dynamic empty string array Pin
WCup1-May-06 3:16
WCup1-May-06 3:16 
GeneralRe: How to create dynamic empty string array Pin
codehacker381-May-06 3:46
codehacker381-May-06 3:46 
GeneralRe: How to create dynamic empty string array Pin
Larantz1-May-06 8:21
Larantz1-May-06 8:21 
AnswerRe: How to create dynamic empty string array Pin
Guffa1-May-06 0:45
Guffa1-May-06 0:45 
GeneralRe: How to create dynamic empty string array Pin
code_wiz1-May-06 1:55
code_wiz1-May-06 1:55 
GeneralRe: How to create dynamic empty string array Pin
Guffa1-May-06 2:32
Guffa1-May-06 2:32 
Questionhow to check it programatically Pin
pujareddy1-May-06 0:18
pujareddy1-May-06 0:18 

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.