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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:05:39+00:00 2026-05-23T08:05:39+00:00

I have a list and 2 textboxes: when you select the list you get

  • 0

I have a list and 2 textboxes:
when you select the list you get a name and a cost.
Then when you select and input a number in the price textbox I want to update the profit textbox, on the change event. The problem I get is that when I input the first number in the proce textbox it set focus on the profit textbox as I need to update it.

How can I do it to make it right?

  • 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-23T08:05:40+00:00Added an answer on May 23, 2026 at 8:05 am

    Do you have code that sets focus to the profit textbox? If yes, I suggest you remove that.

    Use the AfterUpdate event on your price textbox to perform the calculation. For the type of scenario you are describing, the AfterUpdate event for the control is almost always preferred over other events such as Change, GotFocus, LostFocus, Enter, Exit or Click.

    One of the only places you need to use the change event is when you want to perform a search/filter while the person is typing. At first this seems like a wise idea but as the database grows in size/records it usually causes performance issues. Once again, the AfterUpdate event is almost always the event you want to use to perform calculations or apply filters.

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

Sidebar

Related Questions

i have list of rows that user select and i want to delete them,
I have a textbox to get the user name from the user and am
I have a list of textboxes created dynamically accroding to the user selection on
I have List I want to sort Desc by Priority, which is int and
I have list in python which has following entries name-1 name-2 name-3 name-4 name-1
i have a list of textboxes in a column of a html table. The
I have a view that contains a list of items, a TextBox and a
i have list of images and on mouse over there is option box shows
I have list of words. I type in a word misspelled. Can I query
I have list of files which contain particular patterns, but those files have been

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.