Click here to Skip to main content
15,902,492 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: DropDown Button in C# Pin
Josh Smith14-Jul-06 5:31
Josh Smith14-Jul-06 5:31 
AnswerRe: DropDown Button in C# Pin
Josh Smith14-Jul-06 5:28
Josh Smith14-Jul-06 5:28 
QuestionNeed some help for merging Crystal Reports Pin
Jats_4ru11-Jul-06 23:54
Jats_4ru11-Jul-06 23:54 
QuestionHow to get the complete scrollable height and width of a control Pin
Yash Purohit11-Jul-06 22:36
Yash Purohit11-Jul-06 22:36 
QuestionExceptions in .net Pin
narasimha peta11-Jul-06 18:22
narasimha peta11-Jul-06 18:22 
AnswerRe: Exceptions in .net Pin
Rob Philpott12-Jul-06 3:46
Rob Philpott12-Jul-06 3:46 
GeneralRe: Exceptions in .net Pin
Dan Neely12-Jul-06 4:41
Dan Neely12-Jul-06 4:41 
GeneralRe: Exceptions in .net Pin
eggsovereasy12-Jul-06 10:44
eggsovereasy12-Jul-06 10:44 
This works because all the other exceptions inherit from System.Exception (although, not directly). A child exception should be listed before its parent in a list like above. Lets say I made two custom exceptions:

BadDataException
and
BadIntegerException : BadDataException

A BadInteger is a specific kind of BadData so I have it inheriting from BadData. This means I have to option of catching any BadData and doing something or:

<br />
catch (BadIntegerException)<br />
{<br />
  //do stuff<br />
}<br />
catch (BadDataException)<br />
{<br />
  //do other stuff<br />
}<br />


which would do something if it were an integer, but something else if it were a different kind of bad data.

This:
<br />
catch (BadDataException)<br />
{<br />
  //do stuff<br />
}<br />
catch (BadIntegerException)<br />
{<br />
  //do other stuff<br />
}<br />


Is bad because an BadIntegerExceptions that get thrown will be caught by the first catch and the code in the second block will never get executed.
QuestionDoes the CLR cache .config values or tracing levels? Pin
nicknotyet11-Jul-06 4:22
nicknotyet11-Jul-06 4:22 
AnswerRe: Does the CLR cache .config values or tracing levels? Pin
Dave Kreskowiak11-Jul-06 4:26
mveDave Kreskowiak11-Jul-06 4:26 
GeneralRe: Does the CLR cache .config values or tracing levels? Pin
nicknotyet11-Jul-06 6:25
nicknotyet11-Jul-06 6:25 
GeneralRe: Does the CLR cache .config values or tracing levels? Pin
Rob Philpott12-Jul-06 3:50
Rob Philpott12-Jul-06 3:50 
GeneralRe: Does the CLR cache .config values or tracing levels? Pin
nicknotyet12-Jul-06 4:01
nicknotyet12-Jul-06 4:01 
GeneralRe: Does the CLR cache .config values or tracing levels? Pin
Dave Kreskowiak12-Jul-06 4:11
mveDave Kreskowiak12-Jul-06 4:11 
QuestionDoes USB flash drive (USB memory stick) belong to DBT_DEVTYP_VOLUME? Pin
mmhu11-Jul-06 3:14
mmhu11-Jul-06 3:14 
QuestionSynchronizing Databases Pin
sujanakar10-Jul-06 20:03
sujanakar10-Jul-06 20:03 
AnswerRe: Synchronizing Databases Pin
Fred Johanns13-Jul-06 11:25
Fred Johanns13-Jul-06 11:25 
Questionj2ee to .net migration Pin
Brian P. Bailey10-Jul-06 17:35
Brian P. Bailey10-Jul-06 17:35 
QuestionWhere's the HWND in Form? Pin
Swinefeaster10-Jul-06 11:31
Swinefeaster10-Jul-06 11:31 
AnswerRe: Where's the HWND in Form? Pin
Christian Graus10-Jul-06 11:45
protectorChristian Graus10-Jul-06 11:45 
GeneralRe: Where's the HWND in Form? Pin
Swinefeaster10-Jul-06 11:51
Swinefeaster10-Jul-06 11:51 
GeneralRe: Where's the HWND in Form? Pin
Christian Graus10-Jul-06 11:53
protectorChristian Graus10-Jul-06 11:53 
GeneralRe: Where's the HWND in Form? Pin
Swinefeaster10-Jul-06 11:59
Swinefeaster10-Jul-06 11:59 
AnswerRe: Where's the HWND in Form? Pin
Guffa10-Jul-06 12:43
Guffa10-Jul-06 12:43 
GeneralRe: Where's the HWND in Form? Pin
Joel Lucsy10-Jul-06 13:23
Joel Lucsy10-Jul-06 13:23 

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.