I need to understand one logic.
I have four txtboxes (txtbx1, txtbx2, txtbx3 and txtbx4) that should enter any decimal. But I have two caracters "-" and ".."
What I need? I need to see appearing in the textbox4 the number "0" (ONLY when this two numbers "-" and ".." are inserted).
see what I try to do but its doesnt make sense:
private void txtDec1_1_mensal_TextChanged(object sender, EventArgs e)
{
if txtbx1.Text 'and ' txtbx2.Text 'and' txtbx3.Text = '-' then txtbx4.Text = '0';
}

VulpesRank #55 · 29.2K reputationPosted Sep 23, 2014, 7:36 AM EDT
Mfwamba Tshimanga155 reputationPosted Sep 21, 2014, 1:20 PM EDT
Mfwamba Tshimanga155 reputationPosted Sep 22, 2014, 6:59 AM EDT
Wim SturkenboomRank #2,527 · 554 reputationPosted Sep 22, 2014, 8:30 AM EDT
tb1: 4
tb2: 3
tb3: ..
tb4: ???
tb1: 4
tb2: 3
tb3: 99
tb4: ???
And a few more.
Mfwamba Tshimanga155 reputationPosted Sep 23, 2014, 5:44 AM EDT
txtbox1 | txtbox2 | txtbox3 | txtbox4
25,00 .. or - 12,05 ? // the result should appear here
Then on this form what I need?
Each insertion should make addition operation number (for example: 25,00 + 12,05 = 37,05).
But there is one problem. It's impossible to make operation with this symbole ".." and "-"
What I need?
Even in one of the txtboxs I insert one of this symbole (".." or "-"). Its should considere its as "0". Means 25,00 + .. + 12,05 = 37,05 or 25,00 + - + 12,05 = 37,05
In conclusao, not matter if I insert theses symbol. Even inserted Its should be considered as "0". That all.
Thanx.
Mfwamba Tshimanga155 reputationPosted Sep 23, 2014, 8:40 AM EDT