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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T01:18:18+00:00 2026-05-25T01:18:18+00:00

Does anybody know what’s kind of event happend on target control when I use

  • 0

Does anybody know what’s kind of event happend on target control when I use errorProvider.SetIconAlignment() method?

for example:

When I call errorProvider.SetIconAlignment(mytextbox1, ErrorIconAlignment.MiddleRight);

on mytextbox1 I want to catch this event whenever SetIconAlignment was called?

  • 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-25T01:18:18+00:00Added an answer on May 25, 2026 at 1:18 am

    I don’t see an event that ErrorProvider could be using. In fact, I can’t find any event at all that’s related to this.

    Based on what I’ve used from ErrorProvider, there is no other way than to extend the method, like this:

    // Defines an extended version of the ErrorProvider
    public class ExtendedErrorProvider : ErrorProvider, INotifyPropertyChanging, INotifyPropertyChanged
    {
        // That will replace the SetIconAlignment from the base class when you call it from outside the class
        public void SetIconAlignment(Control control, ErrorIconAlignment value)
        {
            // Will raise an event just before changing the property
            OnPropertyChanging("IconAlignment");
            // Changed the property using the base class
            base.SetIconAlignment(control, value);
            // Will raise an event just after the property has changed
            OnPropertyChanged("IconAlignment");
        }
    
        // This will ensure that whenever you bind methods to be called on the PropertyChanging, they will get called for the specific property...
        protected void OnPropertyChanging(string property) { if (PropertyChanging != null) PropertyChanging(this, new PropertyChangingEventArgs(property)); }
        public event PropertyChangingEventHandler PropertyChanging;
        // This will ensure that whenever you bind methods to be called on the PropertyChanged, they will get called for the specific property...
        protected void OnPropertyChanged(string property) { if (PropertyChanged != null) PropertyChanged(this, new PropertyChangedEventArgs(property)); }
        public event PropertyChangedEventHandler PropertyChanged;
    }
    

    Now, outside this class, you can do something like this:

    errorProvider1.PropertyChanging += WhatNeedsToBeDoneBeforeChanging(...);
    errorProvider1.PropertyChanged += WhatNeedsToBeDoneAfterChanging(...);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does anybody know why my getAltitude in the following always returns 0? package com.example.helloandroid;
Does anybody know a good place to learn how to use the debugger in
Does anybody know whether this can be achieved in jQuery. Target/addClass to the last
Does anybody know what dictionary UITextChecker pulls from? I use it to verify that
Does anybody know how I use asp.net mvc routing to force any non ajax
Does anybody know of a method for creating custom Performance Counters using ordinary unmanaged
Does anybody know a good reference I can use to prepare for interview questions/tests
Does anybody know how to use the REST Library for Robot Framework? The library
Does anybody know why this function, when passed an invalid date (e.g. timestamp) to
Does anybody know if the CUDA library 'Thrust' can generate random numbers on the

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.