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 8146557
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T14:02:56+00:00 2026-06-06T14:02:56+00:00

I just started learning C# and started with Windows Forms project. When I try

  • 0

I just started learning C# and started with Windows Forms project.
When I try to validate text fields I get this error:

Error 1 ‘Downloader.SDownloader’ does not contain a definition for ‘errorProvider1’ and no extension method ‘errorProvider1’ accepting a first argument of type ‘Downloader.SDownloader’ could be found (are you missing a using directive or an assembly reference?) C:\Users\Bad_Wolf\documents\visual studio 2010\Projects\Register\Register\Form1.cs 77 22 Register

There is my source code:

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Downloader {
    public partial class SDownloader : Form {
        public SDownloader() {
            InitializeComponent();
        }
        private void fname_MouseClick(object sender, MouseEventArgs e) {
           fname.Text = "";
        }
        private void fname_TextChanged(object sender, EventArgs e) {

        }
        private void lname_MouseClick(object sender, MouseEventArgs e) {
            lname.Text = "";
        }
        private void lname_TextChanged(object sender, EventArgs e) {

        }
        private void username_MouseClick(object sender, MouseEventArgs e) {
            username.Text = "";
        }
        private void email_MouseClick(object sender, MouseEventArgs e) {
            email.Text = "";
        }
        private void password_MouseClick(object sender, MouseEventArgs e) {
            password.Text = "";
        }
        private void password2_MouseClick(object sender, MouseEventArgs e) {
            password2.Text = "";
        }
        private void password2_TextChanged(object sender, EventArgs e) {

        }
        private void register_Click(object sender, EventArgs e) {

        }
        private void fname_Validating(object sender, CancelEventArgs e) {
            string errorMsg;
            if (fname.Text.Trim().Length < 4) {
                e.Cancel = true;
                fname.Select(0, fname.Text.Length);
                this.errorProvider1.SetError(fname, errorMsg);
            }
        }
        private void fname_Validated(object sender, EventArgs e) {

        }
    }
}
  • 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-06-06T14:02:57+00:00Added an answer on June 6, 2026 at 2:02 pm

    The reason you are getting this error is because you haven’t added the ErrorProvider to the form in the design view. Add the ErrorProvider and name it errorProvider1

    enter image description here

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

Sidebar

Related Questions

This is probably a really stupid error but iv'e just started learning the .awt
I just started learning C but I don't understand this part of the code.
I'm learning WPF and started with this MSDN tutorial. I was just following the
Just started learning WP7 platform. Don't even know how to describe occurred error. It
I just started learning RoR. This is my /app/trip_controller.rb file class TripController < ApplicationController
Just started learning PySide and is having problem with QTimer I have this #!/usr/bin/python
I have just started learning how to program Windows GUI's using the low level
Just started learning Ruby metaprogramming. Looking at Object.methods I get: Object.methods => [ :allocate,
I just started learning C++ couple of weeks ago. So now I have this
I just started learning HTML5, I started with normal text file and changed its

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.