Click here to Skip to main content
15,917,808 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionRe: Passing Events Pin
DaveAuld17-Jun-10 3:58
professionalDaveAuld17-Jun-10 3:58 
NewsRe: Passing Events Pin
Sonhospa17-Jun-10 5:17
Sonhospa17-Jun-10 5:17 
GeneralRe: Passing Events Pin
DaveAuld17-Jun-10 5:53
professionalDaveAuld17-Jun-10 5:53 
GeneralRe: Passing Events Pin
Sonhospa17-Jun-10 6:17
Sonhospa17-Jun-10 6:17 
NewsResolved: Passing Events Pin
Sonhospa17-Jun-10 7:33
Sonhospa17-Jun-10 7:33 
GeneralRe: Resolved: Passing Events Pin
DaveAuld17-Jun-10 7:43
professionalDaveAuld17-Jun-10 7:43 
QuestionVisStudio 2005 (VB) to VS 2008/2010 migration errors exit function without message Pin
QuickBooksDev17-Jun-10 1:56
QuickBooksDev17-Jun-10 1:56 
AnswerRe: VisStudio 2005 (VB) to VS 2008/2010 migration errors exit function without message Pin
Luc Pattyn17-Jun-10 2:19
sitebuilderLuc Pattyn17-Jun-10 2:19 
Hi,

I'll assume this is a WinForms app.

1.
The way some exceptions get handled by default is different when running inside or outside Visual Studio, and can be controlled by some Visual settings. Look at menu Debug/Exceptions...

2.
You should provide local try-catch for problems you can deal with locally.

3.
If all else fails, you can provide a safety net to your entire application; it will not be good enough to catch and solve the exception and continue execution in a meaningful way, it will however signal you something is wrong and needs a code fix. You would need at least two things:
- a try-catch in your main method, which is located in automatically generated file program.vb (may be hidden a bit).
- an event handler attached to Application.ThreadException; could also be added inside the same main method.

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum
Please use < PRE > tags for code snippets, it preserves indentation, and improves readability.


GeneralRe: VisStudio 2005 (VB) to VS 2008/2010 migration errors exit function without message Pin
QuickBooksDev19-Jun-10 2:14
QuickBooksDev19-Jun-10 2:14 
AnswerRe: VisStudio 2005 (VB) to VS 2008/2010 migration errors exit function without message Pin
AnnieMacD17-Jun-10 2:46
AnnieMacD17-Jun-10 2:46 
GeneralRe: VisStudio 2005 (VB) to VS 2008/2010 migration errors exit function without message Pin
QuickBooksDev19-Jun-10 2:11
QuickBooksDev19-Jun-10 2:11 
GeneralRe: VisStudio 2005 (VB) to VS 2008/2010 migration errors exit function without message Pin
AnnieMacD19-Jun-10 2:35
AnnieMacD19-Jun-10 2:35 
GeneralRe: VisStudio 2005 (VB) to VS 2008/2010 migration errors exit function without message Pin
QuickBooksDev21-Jun-10 6:47
QuickBooksDev21-Jun-10 6:47 
GeneralRe: HELP!!! There must be a setting or something. VisStudio 2005 (VB) to VS 2008/2010 migration errors exit function without message Pin
QuickBooksDev23-Jun-10 5:19
QuickBooksDev23-Jun-10 5:19 
Questionchanging monitor screen resolution Pin
phowarso16-Jun-10 21:08
phowarso16-Jun-10 21:08 
AnswerRe: changing monitor screen resolution Pin
Dave Kreskowiak17-Jun-10 1:38
mveDave Kreskowiak17-Jun-10 1:38 
QuestionHow do I connect vb 2005 and Access 2007 in published application [modified] Pin
cyberexel16-Jun-10 12:14
cyberexel16-Jun-10 12:14 
AnswerRe: How do I connect vb 2005 and Access 2007 in published application Pin
Dave Kreskowiak17-Jun-10 1:36
mveDave Kreskowiak17-Jun-10 1:36 
GeneralRe: How do I connect vb 2005 and Access 2007 in published application Pin
cyberexel17-Jun-10 8:11
cyberexel17-Jun-10 8:11 
GeneralRe: How do I connect vb 2005 and Access 2007 in published application Pin
Dave Kreskowiak17-Jun-10 8:25
mveDave Kreskowiak17-Jun-10 8:25 
GeneralRe: How do I connect vb 2005 and Access 2007 in published application Pin
cyberexel17-Jun-10 19:09
cyberexel17-Jun-10 19:09 
QuestionDeployment of COM AddIn Pin
Sonhospa16-Jun-10 8:41
Sonhospa16-Jun-10 8:41 
AnswerRe: Deployment of COM AddIn Pin
Dave Kreskowiak16-Jun-10 8:47
mveDave Kreskowiak16-Jun-10 8:47 
GeneralRe: Deployment of COM AddIn Pin
Sonhospa16-Jun-10 22:02
Sonhospa16-Jun-10 22:02 
QuestionDynamic web reference windows ce Pin
thesum16-Jun-10 5:27
thesum16-Jun-10 5:27 

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.