Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Increasing the size of a checkbox web control
Message
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires Web
Divers
Thread ID:
00924031
Message ID:
00924179
Vues:
14
>I would appreciate the samaple code and images. I need to create a form with 32 if them, which represent our 32 teeth.

Neil,

Below is the code that handles the image swapping. I misspoke earlier. Rather than images they are image buttons. I had to use those in order to cause a postback. The below code handles more than one image button. And you could actually use any image you wanted. For the sake of teeth, it would almost be cool to have a good tooth / bad tooth type toggle... <g>
    '* This routine handle all of the "custom check boxes"
    Private Sub imbMain_Click(ByVal sender As System.Object, _
    ByVal e As System.Web.UI.ImageClickEventArgs) _
    Handles imbMain1.Click, imbMain2.Click, imbMain3.Click

        ' Variables
        Dim oImgBtn As System.Web.UI.WebControls.ImageButton

        ' Assign Reference
        oImgBtn = sender

        ' Swap Image
        With oImgBtn
            .ImageUrl = IIf(.ImageUrl = "checked.gif", "unchecked.gif", "checked.gif")
        End With

    End Sub
I am going to e-mail the check images now.

Hope that helps...
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform