473,395 Members | 1,530 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

programming - basics

I would like to know how to write a part of programm which will be allways executed, not connected to any action. Simply to run it all the time.
Is it a "sub" program, or what? I don't want to call this part of programm or to start it with some action.

For example, a value in a text box should allways be sum of values in other two test boxes placed in different form.

Thank you
Oct 24 '06 #1
5 1343
LacrosseB0ss
113 100+
Form_Load is a good method to use for that. It runs every time the form is loaded and is run once.

If you want a text box to default to have a certain value in it when the program starts up, however, simply use the Text feature in the properties box. And type what you want inside.
Oct 24 '06 #2
albertw
267 100+
Form_Load is a good method to use for that. It runs every time the form is loaded and is run once.

If you want a text box to default to have a certain value in it when the program starts up, however, simply use the Text feature in the properties box. And type what you want inside.
hi
seems changing data in textboxes on different forms is aready action enough to start calculating the sum on the 3rd from :D
Oct 24 '06 #3
it seems i wasn't clear enough.
what i want is a value in a text box to be summ of other text boxes, places on different forms in project. and this summ should allways be calculated, no mother what action is taken

if i use Form_load, all operation written in this part of programm are performed only when the form is loaded

hi
seems changing data in textboxes on different forms is aready action enough to start calculating the sum on the 3rd from :D
Oct 25 '06 #4
albertw
267 100+
it seems i wasn't clear enough.
what i want is a value in a text box to be summ of other text boxes, places on different forms in project. and this summ should allways be calculated, no mother what action is taken

if i use Form_load, all operation written in this part of programm are performed only when the form is loaded
hi

yes, i understand, but once the answer is placed into this textbox, why should it change?
there must be a reason... this is a trigger for the program to recalculate.
even if you change the contents of the 'answer' textbox, you may recalculate using textbox_change()
i really don't see the problem.
why would you recalculate if the answer is still in the textbox?
further more you can set a timer to calculate every whatever time (interval-property)
continously running programs are out ever since quickbasic :)
be happy, and give your pc some rest now and then.
Oct 25 '06 #5
How about using the "TextBox1_TextChanged" on each of the textboxes with possible chagning info to recalculated the third box
Oct 26 '06 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Mark | last post by:
Hello. I am new to programming and Python and was wondering if someone could help get me started. I picked Python to start learning to prgram because of some things I have read about it (easy to...
1
by: manish | last post by:
Hi, I am a fresher in the programming field i.e although I have done programming at the basic level but at professional level I am very new and I am facing many problems. These probllems are...
3
by: user | last post by:
Hi all, At the outset, I regret having to post this slightly OT post here. However, I strongly feel that people in this group would be the best to advise me on my predicament. I am working as...
12
by: Harry | last post by:
Hi, I am a system administrator who wants to move to Web App. development. I have read quite a lot articles regarding .net framework and visual studio.net and feel comfortable to start learning...
7
Banfa
by: Banfa | last post by:
Posted by Ganon11 So, you want to learn how to program! Good for you! Programming is a very intruiging and fun activity to pick up, and it's also a great career choice if you like it! Finally,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.