textbox font

Discussion in 'ASP .Net Web Controls' started by spy, Apr 14, 2004.

  1. spy

    spy Guest

    i would like modify font texybox in verdana in onpage_load

    spy, Apr 14, 2004
    1. Advertisements

  2. Hi Enrico,

    Try this?

    Private Sub Page_Load _
    (ByVal sender As System.Object, _
    ByVal e As System.EventArgs) _
    Handles MyBase.Load
    TextBox1.Attributes.Add("Style", _
    "font:italic normal bolder 12pt Verdana")
    TextBox1.Text = "This should be Verdana"
    End Sub

    Ken Cox [Microsoft MVP], Apr 14, 2004
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.