Click here to Skip to main content
15,914,071 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to read the splitcontainers Programmatically ? Pin
Blue_Boy23-May-11 1:38
Blue_Boy23-May-11 1:38 
AnswerRe: How to read the splitcontainers Programmatically ? Pin
Luc Pattyn23-May-11 3:32
sitebuilderLuc Pattyn23-May-11 3:32 
AnswerRe: How to read the splitcontainers Programmatically ? Pin
Subin Mavunkal23-May-11 20:28
Subin Mavunkal23-May-11 20:28 
Questionnested try catch Pin
Pranit Kothari22-May-11 22:21
Pranit Kothari22-May-11 22:21 
AnswerRe: nested try catch PinPopular
Richard MacCutchan22-May-11 22:53
mveRichard MacCutchan22-May-11 22:53 
AnswerRe: nested try catch Pin
Keith Barrow22-May-11 23:22
professionalKeith Barrow22-May-11 23:22 
AnswerRe: nested try catch [modified] Pin
Subin Mavunkal22-May-11 23:59
Subin Mavunkal22-May-11 23:59 
GeneralRe: nested try catch Pin
Keith Barrow23-May-11 0:26
professionalKeith Barrow23-May-11 0:26 
I assure you, that Top Level Exception handling is good practise for user facing applications, it is really bad to allow the user to see a raw .net exception. At best it will give the user a load of technical detail that will get them annoyed as they won't understand it, poor dears, this will also make them think the problem is worse than it is when compared to a friendly "Something has gone wrong" popup. At worst I've seen the unhandle exception expose sensitive informtaion such as a connection string with password. Another benefit of Top-Level handlers, is logging for unexpected exceptions across the whole app, this allows the dev team to add new try/catch blocks for specific exceptions that were missed before release. This strategy quickly helps build robust systems.

What is bad practise is to locally provide a "catch all", you should try to catch only specific exception types locally.

AnswerRe: nested try catch Pin
RobCroll23-May-11 12:33
RobCroll23-May-11 12:33 
QuestionDatagridview in Search Pin
ismail2022-May-11 21:44
ismail2022-May-11 21:44 
AnswerRe: Datagridview in Search Pin
Richard MacCutchan23-May-11 1:28
mveRichard MacCutchan23-May-11 1:28 
QuestionHow to declare the KeyPress Event to All RichTextBoxes...? Pin
Paramu197322-May-11 21:27
Paramu197322-May-11 21:27 
AnswerRe: How to declare the KeyPress Event to All RichTextBoxes...? Pin
Wayne Gaylard22-May-11 22:12
professionalWayne Gaylard22-May-11 22:12 
AnswerRe: How to declare the KeyPress Event to All RichTextBoxes...? Pin
RobCroll22-May-11 22:16
RobCroll22-May-11 22:16 
GeneralRe: How to declare the KeyPress Event to All RichTextBoxes...? Pin
ismail2022-May-11 22:22
ismail2022-May-11 22:22 
GeneralRe: How to declare the KeyPress Event to All RichTextBoxes...? Pin
Paramu197322-May-11 23:01
Paramu197322-May-11 23:01 
QuestionHow to generate fix header report with SSRS Pin
Tridip Bhattacharjee22-May-11 20:32
professionalTridip Bhattacharjee22-May-11 20:32 
QuestionHow to force a generic type eventhandler to a ingeneric one? [modified] Pin
JUNEYT22-May-11 12:17
JUNEYT22-May-11 12:17 
AnswerRe: How to force a generic type eventhandler to a ingeneric one? Pin
Alan N22-May-11 23:59
Alan N22-May-11 23:59 
GeneralRe: How to force a generic type eventhandler to a ingeneric one? Pin
JUNEYT23-May-11 2:29
JUNEYT23-May-11 2:29 
QuestionDllImport issue in c sharp Pin
shivamkalra22-May-11 9:45
shivamkalra22-May-11 9:45 
AnswerRe: DllImport issue in c sharp Pin
Luc Pattyn22-May-11 10:17
sitebuilderLuc Pattyn22-May-11 10:17 
AnswerRe: DllImport issue in c sharp Pin
Mark Salsbery22-May-11 12:59
Mark Salsbery22-May-11 12:59 
GeneralRe: DllImport issue in c sharp Pin
shivamkalra22-May-11 15:51
shivamkalra22-May-11 15:51 
QuestionRe: DllImport issue in c sharp Pin
Mark Salsbery22-May-11 16:03
Mark Salsbery22-May-11 16:03 

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.