Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing the width of a button
Message
 
To
05/11/2004 12:49:24
General information
Forum:
ASP.NET
Category:
Web forms
Miscellaneous
Thread ID:
00958583
Message ID:
00958640
Views:
19
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...
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform