Remember, your code runs from top to bottom (as a beginner), each row of code gets ran one line at a time.
Pseudo Code,
If text1 > 36 then
text2 = text1 - 36
text1 = 36
elseif text1 < 36
end sub 'no further need to run the rest of the code
If text2 > 8 then
text3 = text2 - 8
text2 = 8
elseif text2 < 8
end sub 'no further need to run the rest of the code
text2 and text3 will be left blank if needed, you can also code in to make these boxes 0 instead of blank if you like. It appears that you need the simplest code for a project, it can get more complicated though.
Do you not have a text4 TOTAL box? How is each box getting focus, if needed, through the use of the Enter Key or the Tab Key or just let the code do all the work?
http://download.microsoft.com/downlo...e2462/05vb.wmv
Here is a video tutorial.
and another set.
How-To Windows Forms Controls Series – Visual Basic