Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Interrelated text boxes

Status
Not open for further replies.

hankpage

Technical User
Apr 12, 2004
14
US
I have two text boxes with the pressure in one and wind speed in the other. These values are related to each other and I want to be able to change either and have the correct value calculated for the other. However when I change one, calculate the change for the other, and place it in the .text property, it causes a .text change in the first box which causes a back and forth continous changing.

How can I change one box and make the other one calculate the correct number without changing the origional and causing a loop?
 
Use the validate event, it won't change until you leave the textbox, which is probably better anyway.

"Two strings walk into a bar. The first string says to the bartender: 'Bartender, I'll have a beer. u.5n$x5t?*&4ru!2[sACC~ErJ'. The second string says: 'Pardon my friend, he isn't NULL terminated'."
 
That was quick.

Hey that worked great. Thanks a lot.
 
Glad to help.

"Two strings walk into a bar. The first string says to the bartender: 'Bartender, I'll have a beer. u.5n$x5t?*&4ru!2[sACC~ErJ'. The second string says: 'Pardon my friend, he isn't NULL terminated'."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top