Click here to Skip to main content
16,005,141 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Speed Up OleDbDataAdapter.Update() Pin
A Wong17-Mar-08 2:08
A Wong17-Mar-08 2:08 
GeneralSpace between Custom scrollbars horizontal & vertical Pin
VB 8.013-Mar-08 2:24
VB 8.013-Mar-08 2:24 
GeneralI need help on my School Work..........E-Doctor for my School Medical Centre Pin
ak47angel13-Mar-08 1:41
ak47angel13-Mar-08 1:41 
GeneralRe: I need help on my School Work..........E-Doctor for my School Medical Centre Pin
Colin Angus Mackay13-Mar-08 1:54
Colin Angus Mackay13-Mar-08 1:54 
GeneralRe: I need help on my School Work..........E-Doctor for my School Medical Centre Pin
Christian Graus13-Mar-08 9:59
protectorChristian Graus13-Mar-08 9:59 
GeneralRe: I need help on my School Work..........E-Doctor for my School Medical Centre Pin
ESTAN13-Mar-08 2:09
ESTAN13-Mar-08 2:09 
Questionhow to trap unhandled errors in VB.NET? Pin
Jim Buckley Barrett13-Mar-08 1:18
Jim Buckley Barrett13-Mar-08 1:18 
GeneralRe: how to trap unhandled errors in VB.NET? Pin
Kschuler9-Apr-08 5:03
Kschuler9-Apr-08 5:03 
Go to your project's properties and on the Application tab there is a button labeled "View Application Events"...click it and it will open ApplicationEvents.vb. Here you can create a MyApplication_UnhandeledException method that will capture all the unhandled exceptions in your app. You need to add some kind of code to display the error, or else when you hit an exception the app will close without any notification, because you are going to be handling the exceptions yourself now. I would encourage you to include a way to get the exception's message, exception, and stack trace to help you debug your issues. You could even include information like the applications current version, which forms the user had open when the application errored, the user's OS, and publish information if you use clickonce deployment. Personally I like to prompt the user with a messagebox that asks if they want to copy detailed exception info to the clipboard, and if they say yes copy it for them.

As to your second issue, go back to the project's properties and the application tab. There is a drop down to select the Shutdown mode. You can select "When startup form closes" or "When last form closes"... If you choose "When last form closes." you need to be sure that all of your forms are actually closed...not just hidden. This is not always obvious if you aren't using global variables to create instances of your forms. Personally, I like to use the "When startup form closes" mode, and then always have that form open (although usually hidden) until I am sure the user want to exit the app.

Hope this helps.
Questionget date input from user Pin
meghanaVishwa13-Mar-08 1:07
meghanaVishwa13-Mar-08 1:07 
GeneralRe: get date input from user Pin
C1AllenS13-Mar-08 1:52
C1AllenS13-Mar-08 1:52 
QuestionRe: get date input from user Pin
meghanaVishwa13-Mar-08 2:57
meghanaVishwa13-Mar-08 2:57 
GeneralRe: get date input from user Pin
Christian Graus13-Mar-08 9:59
protectorChristian Graus13-Mar-08 9:59 
QuestionRe: get date input from user Pin
meghanaVishwa13-Mar-08 21:23
meghanaVishwa13-Mar-08 21:23 
QuestionBoolean in Subroutines. Pin
Veldrain13-Mar-08 0:48
Veldrain13-Mar-08 0:48 
GeneralRe: Boolean in Subroutines. Pin
ESTAN13-Mar-08 2:19
ESTAN13-Mar-08 2:19 
QuestionListBox DrawItem Horizontal scrollbar Pin
penguin500013-Mar-08 0:10
penguin500013-Mar-08 0:10 
GeneralRe: ListBox DrawItem Horizontal scrollbar Pin
Paul Conrad21-Mar-08 9:38
professionalPaul Conrad21-Mar-08 9:38 
GeneralDocking / drag&drop [modified] Pin
Yustme12-Mar-08 23:37
Yustme12-Mar-08 23:37 
QuestionHow do i break nested loops in VB.NET Pin
www.Developerof.NET12-Mar-08 23:05
www.Developerof.NET12-Mar-08 23:05 
AnswerPls Ignore Pin
www.Developerof.NET12-Mar-08 23:30
www.Developerof.NET12-Mar-08 23:30 
AnswerRe: How do i break nested loops in VB.NET Pin
AshokPatra12-Mar-08 23:30
AshokPatra12-Mar-08 23:30 
GeneralRe: How do i break nested loops in VB.NET Pin
ChandraRam13-Mar-08 0:34
ChandraRam13-Mar-08 0:34 
GeneralRe: How do i break nested loops in VB.NET Pin
AshokPatra13-Mar-08 0:40
AshokPatra13-Mar-08 0:40 
GeneralRe: How do i break nested loops in VB.NET Pin
ChandraRam13-Mar-08 0:44
ChandraRam13-Mar-08 0:44 
GeneralRe: How do i break nested loops in VB.NET Pin
AshokPatra13-Mar-08 0:53
AshokPatra13-Mar-08 0:53 

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.