Foro de Ayuda IntercambiosvirtualeS

Foro de Ayuda IntercambiosvirtualeS (https://www.intercambiosos.org/index.php)
-   Programación (https://www.intercambiosos.org/forumdisplay.php?f=45)
-   -   checkbox dinamicos (https://www.intercambiosos.org/showthread.php?t=12745)

sasuke.17 14-nov-2010 22:50

checkbox dinamicos
 
#region dyanamic checkboxes

//Function to generate the dyanamic checkboxes

private void AddCheckboxes(string strCheckboxText)

{

try

{

if(PnlTimeExpence.HasControls())

{

return;

}

for(int intControlIndex=0;intControlIndex=5;intControlInde x++)

{

chkList1 =new CheckBox();

chkList1.Text = strCheckboxText;

chkList1.ID="Chk"+intControlIndex;

chkList1.Font.Name = "Verdana";

chkList1.Font.Size = 9;

PnlControl.Controls.Add(chkList1);

PnlControl.Controls.Add(new LiteralControl("<;br>;"));

}

}

catch(Exception exp)

{

throw new Exception(exp.Message);

}

}

#endregion

Felina05 16-nov-2010 18:49

http://img526.imageshack.us/img526/9541/0compiv.png


La franja horaria es GMT -4. Ahora son las 10:38.

Desarrollado por: vBulletin® Versión 3.8.1
Derechos de Autor ©2000 - 2025, Jelsoft Enterprises Ltd.

Ad Management by RedTyger