Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Checkbox Text on Check and Uncheck
Message
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Versions des environnements
Environment:
C# 2.0
Divers
Thread ID:
01447036
Message ID:
01447047
Vues:
34
>Hi,
>
>I thought I would be able to set up in designer what text should be in the check box when it is checked and a different text when it is unchecked. But I can't find these properties. Do they exist?
>

Why not set it up in load event of the form?
 private void checkBox1_CheckedChanged(object sender, EventArgs e)
 {
      ValidateCheckValue();
 }

 private void Form1_Load(object sender, EventArgs e)
 {
      ValidateCheckValue();
 }

 private void ValidateCheckValue()
 { 
       checkBox1.Text = (checkBox1.Checked ? "WhenChecked" : "WhenNotChecked");  
 }
>TIA.
JESS S. BANAGA
Project Leader - SDD division
...shifting from VFP to C#.Net

CHARISMA simply means: "Be more concerned about making others feel good about themselves than you are in making them feel good about you."
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform