Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing the width of a button
Message
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires Web
Divers
Thread ID:
00958583
Message ID:
00958640
Vues:
20
This message has been marked as the solution to the initial question of the thread.
>From a Click() event of a button control, I would like to change its width. I have tried this but this gives me an error at compile this:
    Private Sub ShowText_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ShowText.Click
        ShowText.Width=400
    End Sub
Change to
    Private Sub ShowText_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ShowText.Click
        ShowText.Width = New System.Web.UI.WebControls.Unit("400px")
    End Sub
Hope that helps...
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform