- foreach (object a in listView1.Items)
- {
- if (a.ToString() == textBox4.Text.ToString())//Burada " a " ifadesi textbox4.text ifadesine esit oldugu halde false degeri veriyor sebebi ne olabilr.
- {
- kontrol=kontrol+1;
- }
- if(a==textBox7)
- {
- kontrol=kontrol+3;
- }
- if(a==maskedTextBox2)
- {
- kontrol = kontrol + 5;
- }
Loading

Nilesh ShahRank #42 · 34.2K reputationPosted Apr 25, 2019, 3:34 AM EDT
Amit KumarRank #459 · 5.4K reputationPosted Apr 25, 2019, 9:02 AM EDT
Ferdi Kocboga13 reputationPosted Apr 26, 2019, 10:50 PM EDT
if(a.Tostring()==textBox4.Text)Here is the reason why "a" is false even though it is equal to the textbox4.text statement.