Using VB 2008 Express, this is not a problem but a philosophical question. Which is preferred method of providing user with error messages on forms, errorhandler or message boxes? Error handler seems like it's the direction Microsoft would like us to go in, with providing even the errror message as a property at the control level, but message boxes seem easier to use, more familiar to users perhaps and also offer more function, through more text and button options. Just curious as to thoughts from the group at large.
Thanks,
Bill P.
"If the only tool you have is a hammer, you tend to look at every prolem as a nail."
Bill Purkins 0 Light Poster
Recommended Answers
Jump to PostI think it depends on the application. In most cases a messagebox would be fine. However, sometimes you are several layers deep and don't want to just stop the program. But want to pass the error back up the chain. Then an error handler is the key.
Jump to PostI am with you Wayne. In addition, the messagebox interrupts the user, and also, it is modal.
Jump to PostYou might look at Try:Catch and Throw Exception also.
All 12 Replies
waynespangler 63 Posting Pro in Training
dmf1978 8 Junior Poster in Training
Bill Purkins 0 Light Poster
dmf1978 8 Junior Poster in Training
tuse 22 Junior Poster
Bill Purkins 0 Light Poster
dmf1978 8 Junior Poster in Training
Bill Purkins 0 Light Poster
dmf1978 8 Junior Poster in Training
waynespangler 63 Posting Pro in Training
sandeep_chalke 0 Newbie Poster
dmf1978 8 Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.