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

  • Home
  • SEARCH
  • 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 8870027
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T17:37:15+00:00 2026-06-14T17:37:15+00:00

I am currently working on a WinForms project and have a few text boxes

  • 0

I am currently working on a WinForms project and have a few text boxes on the form which are used to take user input. Based on the values the user enters, the values for other fields on the form are calculated. Consequently, I am confused which of the two event handlers I should use to perform the calculations: textbox_Leave or textbox_TextChanged?

Since textbox_TextChanged is fired every time the user changes even a character in the textbox, I feel it is very expensive in terms of processor usage, isn’t it? On the other hand, textbox_Leave is executed only after the user exits from the text box. However, the TextChanged event does give a better more responsive experience to the user. But is this experience worth the extra processing hit that we are taking? Will my project be able to function properly on older systems with slower processors if I use TextChanged?

  • 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-14T17:37:17+00:00Added an answer on June 14, 2026 at 5:37 pm

    The trick here is not to process if you don’t have to, I usually schedule the “heavy duty stuff”, and run it after a while if the TextBox has not been changed again. Something like this:

    • Textbox changed, cancel previous scheduled updates
      • Schedule update in x msec (this depends on application type)
    • Textbox left, update immediately.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working in a C# winforms project and I have a user control
I am currently working on a project that hosts WinForms designer. I am using
We currently have a set of crystal reports used for winforms projects embedded into
I have a project i am working on currently and would like to implement
I have a button on a form, currently drawn using Visual Styles which on
I'm working a WinForms based C# tool which has an attached MDF file based
I need to write a few programs for a project I'm currently working on
I'm currently working on a team project where we have to work with the
I'm currently working on a C# WinForms application which makes calls to a couple
Currently working in the deployment of an OFBiz based ERP, we've come to 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.