Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to check if a check box is checked
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00980046
Message ID:
00980055
Vues:
68
this.chkMyCheckBox.Value = .T. (or 1 - depending on how it's set up)

Turloch

>Hi.
>
>I have a checkbox control on a form and want to test if it is checked or not
>
>How do I do this ?
>
>Something like :
>if (this.chkMyCheckBox.text = true)
> {MessagBox.Show("CheckBox ix checked";}
>
>if (this.chkMyCheckBox.text != true)
> {MessagBox.Show("CheckBox is NOT checked";}
>
>Any help appreciated.
>Regards,
>Gerard
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform