Click here to Skip to main content
15,903,362 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionRepeating WinForm User Control - Similar to template column in ASP.Net DataGridView Pin
pa2814015-Feb-08 11:24
pa2814015-Feb-08 11:24 
GeneralGlobal Try..Catch block again Pin
cstrader23215-Feb-08 10:29
cstrader23215-Feb-08 10:29 
GeneralRe: Global Try..Catch block again Pin
Luc Pattyn15-Feb-08 11:12
sitebuilderLuc Pattyn15-Feb-08 11:12 
GeneralDisable Try/Catch Pin
cstrader23215-Feb-08 6:57
cstrader23215-Feb-08 6:57 
GeneralRe: Disable Try/Catch Pin
Dave Kreskowiak15-Feb-08 7:14
mveDave Kreskowiak15-Feb-08 7:14 
GeneralRe: Disable Try/Catch Pin
cstrader23215-Feb-08 7:17
cstrader23215-Feb-08 7:17 
GeneralRe: Disable Try/Catch [modified] Pin
Dave Kreskowiak15-Feb-08 7:20
mveDave Kreskowiak15-Feb-08 7:20 
GeneralRe: Disable Try/Catch Pin
Luc Pattyn15-Feb-08 7:48
sitebuilderLuc Pattyn15-Feb-08 7:48 
In my experience, it is not the number of the try-catches that poses a problem;
a lot of people seem to stuff the catch blocks with MessageBox.Show which is a
terrible idea, since now you get tired of reading messages, one at a time, and having
to close them over and over again.

I prefer to provide a simple "log" method that takes a single string input, and
logs it somehow. I then implement the log based on Console.WriteLine, a file operation,
a listbox operation, or whatever suits my needs at the time. The advantages are:
- I don't have to interact with this logging
- I get it all sequentially (I tend to automatically add a timestamp too)
- I can save it, and compare different runs

I often temporarily add a ListBox to my main form, just for showing the logging.
MessageBox really is not my prefered debugging tool!

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.


GeneralRe: Disable Try/Catch Pin
cstrader23215-Feb-08 7:59
cstrader23215-Feb-08 7:59 
GeneralRe: Disable Try/Catch Pin
Luc Pattyn15-Feb-08 8:03
sitebuilderLuc Pattyn15-Feb-08 8:03 
GeneralRe: Disable Try/Catch Pin
Dave Kreskowiak15-Feb-08 8:24
mveDave Kreskowiak15-Feb-08 8:24 
GeneralRe: Disable Try/Catch Pin
Luc Pattyn15-Feb-08 10:18
sitebuilderLuc Pattyn15-Feb-08 10:18 
GeneralRe: Disable Try/Catch Pin
Dave Kreskowiak15-Feb-08 10:42
mveDave Kreskowiak15-Feb-08 10:42 
GeneralRe: Disable Try/Catch Pin
Luc Pattyn15-Feb-08 11:01
sitebuilderLuc Pattyn15-Feb-08 11:01 
GeneralRe: Disable Try/Catch Pin
Paul Conrad15-Feb-08 12:43
professionalPaul Conrad15-Feb-08 12:43 
GeneralException information detail Pin
cstrader23215-Feb-08 5:27
cstrader23215-Feb-08 5:27 
GeneralRe: Exception information detail Pin
Luc Pattyn15-Feb-08 6:05
sitebuilderLuc Pattyn15-Feb-08 6:05 
GeneralRe: Exception information detail Pin
cstrader23215-Feb-08 6:22
cstrader23215-Feb-08 6:22 
GeneralRe: Exception information detail Pin
cstrader23215-Feb-08 6:32
cstrader23215-Feb-08 6:32 
GeneralRe: Exception information detail Pin
Luc Pattyn15-Feb-08 7:30
sitebuilderLuc Pattyn15-Feb-08 7:30 
GeneralRe: Exception information detail Pin
Luc Pattyn15-Feb-08 7:22
sitebuilderLuc Pattyn15-Feb-08 7:22 
GeneralRe: Exception information detail Pin
cstrader23215-Feb-08 7:45
cstrader23215-Feb-08 7:45 
GeneralRe: Exception information detail Pin
Luc Pattyn15-Feb-08 7:49
sitebuilderLuc Pattyn15-Feb-08 7:49 
GeneralRe: Exception information detail Pin
cstrader23215-Feb-08 10:15
cstrader23215-Feb-08 10:15 
GeneralRe: Exception information detail Pin
supercat918-Feb-08 6:16
supercat918-Feb-08 6:16 

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.