Posts by Myself • 286 points
4 posts
- 
		6 votes2 answers2547 viewsQ: How to get out of a cycle in C#?I need to get out of the foreach when the value is equal to 1 foreach (DataGridViewRow dr in dgvValetes) if(dr.Cells["valor"].toString()=="1") //Sair aqui I don’t know how to do...… 
- 
		5 votes2 answers109 viewsQ: Store values in HashtableWhen I keep the value of this Hastable he makes me wrong. Follows the code: Hashtable ht = new Hashtable(); ht.Add("index", index); ht.Add("tipo", "1"); string tipo = ht["tipo"];… 
- 
		5 votes1 answer435 viewsQ: C# IF simplificationI have this code, and I’ve been searching for a way to simplify it using a ternary operator, but I’m not getting it because it says I can’t use decimal string: decimal per; if (nud_qtPedida.Value !=… 
- 
		5 votes5 answers1111 viewsA: How do I leave the page open marked in the menu?.active > a { color:red; } It’s the best way