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';
}
VulpesPosted Sep 23, 2014, 11:36 AM
Mfwamba TshimangaPosted Sep 23, 2014, 12:40 PM
Mfwamba TshimangaPosted Sep 23, 2014, 9:44 AM
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.
Wim SturkenboomPosted Sep 22, 2014, 12:30 PM
tb1: 4
tb2: 3
tb3: ..
tb4: ???
tb1: 4
tb2: 3
tb3: 99
tb4: ???
And a few more.
Mfwamba TshimangaPosted Sep 22, 2014, 10:59 AM
Mfwamba TshimangaPosted Sep 21, 2014, 5:20 PM