Click here to Skip to main content
       

C#

 
Hint: For improved responsiveness ensure Javascript is enabled and choose 'Normal' from the Layout dropdown and hit 'Update'.
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page  Show 
AnswerRe: Catching unhandled ThreadAbortException from Main?memberShameel31-Jan-13 3:49 
AnswerRe: Catching unhandled ThreadAbortException from Main?memberjschell31-Jan-13 8:29 
GeneralRe: Catching unhandled ThreadAbortException from Main?memberdevvvy31-Jan-13 15:43 
GeneralRe: Catching unhandled ThreadAbortException from Main?memberjschell2-Feb-13 7:53 
AnswerRe: Catching unhandled ThreadAbortException from Main?memberKeld Ølykke31-Jan-13 21:15 
QuestionGo to finally in try blockmembervanikanc30-Jan-13 7:25 
AnswerRe: Go to finally in try blockmemberjibesh30-Jan-13 7:35 
GeneralRe: Go to finally in try blockmembervanikanc30-Jan-13 7:37 
GeneralRe: Go to finally in try blockmemberjibesh30-Jan-13 7:41 
GeneralRe: Go to finally in try blockmembervanikanc30-Jan-13 7:42 
GeneralRe: Go to finally in try blockmemberjibesh30-Jan-13 7:44 
GeneralRe: Go to finally in try blockmemberdevvvy31-Jan-13 15:44 
AnswerRe: Go to finally in try blockmvpEddy Vluggen30-Jan-13 7:45 
vanikanc wrote:
If I use Environment.Exit(); then it will end the program, and I would not have closed the connection to database that is open.

It will not end the program, but terminate it.
 
Use Application.Terminate for a WinApp, and simply return from the Main method (the entry-point) if you're writing a Console App.
Bastard Programmer from Hell Suspicious | :suss:
If you can't read my code, try converting it here[^]
They hate us for our freedom![^]

AnswerRe: Go to finally in try blockmemberPIEBALDconsult30-Jan-13 7:53 
AnswerRe: Go to finally in try blockmemberjschell30-Jan-13 8:04 
AnswerRe: Go to finally in try blockmvpAbhinav S30-Jan-13 21:32 
AnswerRe: Go to finally in try blockmemberV.30-Jan-13 22:10 
AnswerRe: Go to finally in try blockmvpRahul Rajat Singh30-Jan-13 22:15 
AnswerRe: Go to finally in try blockmvpRahul Rajat Singh30-Jan-13 22:18 
GeneralRe: Go to finally in try blockmemberdevvvy31-Jan-13 15:46 
QuestionUnit Conversion Application - C#, IIS, ASP.NET 4.0, WCF, Windows form appmemberMacRuturaj30-Jan-13 7:07 
AnswerRe: Unit Conversion Application - C#, IIS, ASP.NET 4.0, WCF, Windows form appmemberEnnis Ray Lynch, Jr.30-Jan-13 7:16 
GeneralRe: Unit Conversion Application - C#, IIS, ASP.NET 4.0, WCF, Windows form appmemberMacRuturaj30-Jan-13 7:19 
GeneralRe: Unit Conversion Application - C#, IIS, ASP.NET 4.0, WCF, Windows form appmemberEnnis Ray Lynch, Jr.30-Jan-13 7:28 
AnswerRe: Unit Conversion Application - C#, IIS, ASP.NET 4.0, WCF, Windows form appmemberPIEBALDconsult30-Jan-13 7:22 
GeneralRe: Unit Conversion Application - C#, IIS, ASP.NET 4.0, WCF, Windows form appmemberMacRuturaj30-Jan-13 7:24 
AnswerRe: Unit Conversion Application - C#, IIS, ASP.NET 4.0, WCF, Windows form appmvpEddy Vluggen30-Jan-13 7:22 
GeneralRe: Unit Conversion Application - C#, IIS, ASP.NET 4.0, WCF, Windows form appmemberMacRuturaj30-Jan-13 7:29 
AnswerRe: Unit Conversion Application - C#, IIS, ASP.NET 4.0, WCF, Windows form appmvpEddy Vluggen30-Jan-13 7:32 
GeneralRe: Unit Conversion Application - C#, IIS, ASP.NET 4.0, WCF, Windows form appmemberMacRuturaj30-Jan-13 7:31 
GeneralRe: Unit Conversion Application - C#, IIS, ASP.NET 4.0, WCF, Windows form appmvpEddy Vluggen30-Jan-13 7:42 
GeneralRe: Unit Conversion Application - C#, IIS, ASP.NET 4.0, WCF, Windows form appmemberMacRuturaj30-Jan-13 7:49 
QuestionNLog questionmembervanikanc30-Jan-13 5:46 
AnswerRe: NLog questionmvpAbhinav S30-Jan-13 6:09 
QuestionHttpWebRequest Resolving to the wrong IP AddressmemberEnnis Ray Lynch, Jr.30-Jan-13 4:08 
AnswerSolved my own problemmemberEnnis Ray Lynch, Jr.30-Jan-13 5:49 
QuestionC# app.config permissionmemberclassy_dog29-Jan-13 19:11 
AnswerRe: C# app.config permissionmvpRichard MacCutchan29-Jan-13 21:15 
AnswerRe: C# app.config permissionmemberLokoLuke30-Jan-13 0:35 
AnswerRe: C# app.config permissionmemberShameel30-Jan-13 3:22 
GeneralRe: C# app.config permissionmemberjschell30-Jan-13 8:07 
QuestionC# linq to sql errormemberclassy_dog29-Jan-13 19:10 
AnswerRe: C# linq to sql errormvpRichard MacCutchan29-Jan-13 21:13 
QuestionReference confusionmemberyudhistira dewanata29-Jan-13 18:57 
AnswerRe: Reference confusionmvpAbhinav S29-Jan-13 19:01 
GeneralRe: Reference confusionmemberShameel30-Jan-13 3:26 
QuestionSerial Port Errors, User MessagesmemberC-P-User-329-Jan-13 6:23 
AnswerRe: Serial Port Errors, User Messagesmemberjibesh29-Jan-13 11:57 
QuestionDynamic Reference to Dll PathmemberMember 461637929-Jan-13 1:53 
AnswerRe: Dynamic Reference to Dll PathmemberAlan N29-Jan-13 3:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   


Advertise | Privacy | Mobile
Web02 | 2.6.130617.1 | Last Updated 18 Jun 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid