ya me salio pueden borrar este post
aki el codigo
correcto descubri que mi problema estaba que el for no lo cerraba con { siempre me pasa eso
que torpe soy
![:P :P](https://forum.elhacker.net/Smileys/navidad/tongue.gif)
aki el codigo
![:P :P](https://forum.elhacker.net/Smileys/navidad/tongue.gif)
![:P :P](https://forum.elhacker.net/Smileys/navidad/tongue.gif)
Código [Seleccionar]
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace desplegardiasdelasemana
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
int cont;
for (cont = 1; cont < 8; cont++)
{
if (cont == 1)
{
textBox1.Text += "lunes"+"\r\n" ;
}
if (cont == 2)
{
textBox1.Text += "martes" + "\r\n";
}
if (cont == 3)
{
textBox1.Text += "miercoles"+"\r\n";
}
if (cont == 4)
{
textBox1.Text += "jueves" + "\r\n";
}
if (cont == 5)
{
textBox1.Text += "viernes" + "\r\n";
}
if (cont == 6)
{
textBox1.Text += "sabado" + "\r\n";
}
if (cont == 7)
{
textBox1.Text += "domingo" + "\r\n";
}
}
}
}
}