Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 259835
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T22:17:50+00:00 2026-05-11T22:17:50+00:00

In my company, I’ve seen several approaches for notifying a user when their input

  • 0

In my company, I’ve seen several approaches for notifying a user when their input is invalid (our validation is generally done when the user clicks some form of a “Submit” button).

Here are the most common approaches I’ve seen:

  • Using the ErrorProvider class to communicate which controls contain invalid input. (this is my current preference because the validation can be done in one shot and the user can easily identify which controls contain the invalid input.)

  • Validating the input in all of the controls and compiling a list of messages to display to the user. Once the validation routine has completed, display all “invalid input” messages to the user at once (via a MessageBox).

  • Validating the input in each control sequentially and notifying the user once a piece of invalid data is found (via a MessageBox). (I’m not a fan of this approach because if Control_A and Control_B both contain invalid data, the user will have to attempt to submit the data twice in order to see both validation messages.)

What do you think is the best way to go about effectively/efficiently notifying users of invalid input?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T22:17:51+00:00Added an answer on May 11, 2026 at 10:17 pm

    Using IDataError, you can combine the two first approaches, since it both allows you to provide an error for individual controls, but also an aggregate error message for the entire view.

    In some cases, you may have validation logic that depends on the combination of several different input values, so only binding validation to each control would be too prohibitive. On the other hand, you still want to be able to provide an error message for each control in the many cases where this makes sense. IDataError allows you to do both. The most common UI implementation is to have a visual cue (such as a blinking icon) next to each invalid control.

    Popping up a modal dialog (Message Box) each time the user does something invalid is a very effective way of annoying the user – they lose context and have to spend time clicking on the ‘OK’ button to make the dialog go away.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The company I'm currently working for is using Selenium for Uniting-Testing our User Interface.
My company develops several types of applications. A lot of our business comes from
My company is currently using Sage MAS as their ERP system. While integrating our
My company is using CVS as our de-facto standard for source control. However, I've
Our company is currently writing a GUI automation testing tool for compact framework applications.
The company I work for is wanting to add blog functionality to our website
Company I work for has set up a twitter handle, and on our website
My company has developed a long standing product using MFC in Visual C++ as
The company I used to work with has two developers working fulltime, and a
The company I work for makes hardware that communicates to the computer though a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.