Ferdi Kocboga

Ferdi Kocboga

  • NA
  • 15
  • 889

String of the expression I defined from object type

Apr 23 2019 5:26 AM
  1. foreach (object a in listView1.Items)  
  2. {  
  3. if (a.ToString() == textBox4.Text.ToString())//Burada " a " ifadesi textbox4.text ifadesine esit oldugu halde false degeri veriyor sebebi ne olabilr.  
  4. {  
  5. kontrol=kontrol+1;  
  6. }  
  7. if(a==textBox7)  
  8. {  
  9. kontrol=kontrol+3;  
  10. }  
  11. if(a==maskedTextBox2)  
  12. {  
  13. kontrol = kontrol + 5;  
  14. }  

Answers (3)