Click here to Skip to main content
15,899,754 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: List Boxes Pin
Name Removed29-Jun-04 12:03
Name Removed29-Jun-04 12:03 
GeneralRe: List Boxes Pin
Glen Conaway29-Jun-04 12:35
Glen Conaway29-Jun-04 12:35 
GeneralRe: List Boxes Pin
Dave Kreskowiak29-Jun-04 15:47
mveDave Kreskowiak29-Jun-04 15:47 
QuestionWhen is the right time to throw exceptions? Pin
kowplunk29-Jun-04 5:43
kowplunk29-Jun-04 5:43 
AnswerRe: When is the right time to throw exceptions? Pin
kowplunk29-Jun-04 5:46
kowplunk29-Jun-04 5:46 
GeneralRe: When is the right time to throw exceptions? Pin
Blaiser29-Jun-04 6:26
Blaiser29-Jun-04 6:26 
GeneralRe: When is the right time to throw exceptions? Pin
kowplunk29-Jun-04 7:10
kowplunk29-Jun-04 7:10 
GeneralRe: When is the right time to throw exceptions? Pin
Dave Kreskowiak29-Jun-04 8:07
mveDave Kreskowiak29-Jun-04 8:07 
kowplunk wrote:
what is the benefit of handling exceptions of that sort at that point? Because right now all mine are being thrown to the global e catcher Is there any disadvantages that I am missing out on that will come to haunt me later?

Well, if the user attempts to open a file, it would be nice to catch the FileNotFoundException and the tell user to try again (or jump off a bridge Wink | ;) ), or the SecurityException so we can tell the user he/she's got insufficient rights to open the file, or ...

It just depends on what the function does and what you want to do in the even of an exception. Production quality code is HEAVILY populated with exception handlers just because of the little things like trying to open a file that doesn't exist. You could encompass your app with one giant exception handler, but that would also mean that any error would effectively stop your app in its tracks and you would have to restart it.


RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

GeneralRe: When is the right time to throw exceptions? Pin
kowplunk29-Jun-04 7:12
kowplunk29-Jun-04 7:12 
GeneralRe: When is the right time to throw exceptions? Pin
Blaiser29-Jun-04 10:02
Blaiser29-Jun-04 10:02 
GeneralRe: When is the right time to throw exceptions? Pin
kowplunk29-Jun-04 10:07
kowplunk29-Jun-04 10:07 
GeneralRe: When is the right time to throw exceptions? Pin
Kevin McFarlane29-Jun-04 11:53
Kevin McFarlane29-Jun-04 11:53 
GeneralOperator variable reference Pin
WESHILL29-Jun-04 5:22
WESHILL29-Jun-04 5:22 
GeneralRe: Operator variable reference Pin
Dave Kreskowiak29-Jun-04 7:56
mveDave Kreskowiak29-Jun-04 7:56 
GeneralRe: Operator variable reference Pin
WESHILL29-Jun-04 8:24
WESHILL29-Jun-04 8:24 
GeneralRe: Operator variable reference Pin
Dave Kreskowiak29-Jun-04 8:34
mveDave Kreskowiak29-Jun-04 8:34 
GeneralRe: Operator variable reference Pin
WESHILL29-Jun-04 8:56
WESHILL29-Jun-04 8:56 
QuestionWinForms component parented as an MDI child in a Win32 app? Pin
Blaiser29-Jun-04 4:33
Blaiser29-Jun-04 4:33 
AnswerRe: WinForms component parented as an MDI child in a Win32 app? Pin
Dave Kreskowiak29-Jun-04 7:58
mveDave Kreskowiak29-Jun-04 7:58 
GeneralCould not set the focus to a text object Pin
dj4198429-Jun-04 4:19
dj4198429-Jun-04 4:19 
GeneralRe: Could not set the focus to a text object Pin
Blaiser29-Jun-04 6:30
Blaiser29-Jun-04 6:30 
GeneralRe: Could not set the focus to a text object Pin
Dave Kreskowiak29-Jun-04 7:42
mveDave Kreskowiak29-Jun-04 7:42 
GeneralEnableVisualStyles Question Pin
beowulfagate28-Jun-04 20:33
beowulfagate28-Jun-04 20:33 
GeneralRe: EnableVisualStyles Question Pin
Dave Kreskowiak29-Jun-04 2:50
mveDave Kreskowiak29-Jun-04 2:50 
Questionhow to convert speech to text Pin
MLSL28-Jun-04 18:25
MLSL28-Jun-04 18:25 

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.