Results 1 to 2 of 2
  1. #1
    Lounger
    Join Date
    Jan 2001
    Location
    London, Ontario, Ontario, Canada
    Posts
    37
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Asp drop down form (ASP.NET)

    Looking for a way to modify an asp.net vb dropdown list's properties. ie font, colour size, etc. Any suggestions?

  2. #2
    Silver Lounger
    Join Date
    Jan 2001
    Location
    Indianapolis, Indiana, USA
    Posts
    1,862
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Asp drop down form (ASP.NET)

    The DropDownList control inherits the WebControl class, which inherits the FontInfo class. This provides the following properties: Bold, Italic, Name(s) - as in Font Names, Overline, Size, Strikeout, Underline.

    There are also BorderColor, BorderStyle, and BorderWidth properties.

    Finally, you can use the CSSClass property to assign a CSS class to the DropDownList so you can control these items via CSS rather than "hard-coded" properties.

    See Microsoft's DropDownList Members for more information.

    Hope this helps!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •