ListBox Width

Discussion in 'ASP .Net' started by Matthew Wieder, Jul 31, 2003.

  1. I have the common problem of the text for some of the items in my
    listbox exceeds the width of the listbox. The solution oft proposed of
    not setting the width and thereby having the listbox automatically scale
    to the size of the data is helpfull, but it messes up the look of the
    page if the box is empty or only short strings are in the box. What I'd
    like to do, is have the listbox width set to a certain ammount and only
    if a string exceeds a certain number of characters, have the listbox
    width scale. I can't seem to find how to "unset" the listbox width
    attribute via C# codebehind. Does anyone know how to do this?
    thanks!
    Matthew Wieder, Jul 31, 2003
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. blenderdude
    Replies:
    0
    Views:
    819
    blenderdude
    Aug 3, 2003
  2. DC Gringo
    Replies:
    0
    Views:
    393
    DC Gringo
    Apr 6, 2004
  3. kent
    Replies:
    1
    Views:
    867
    Andrew de la Harpe
    May 3, 2004
  4. Simon Prince
    Replies:
    2
    Views:
    3,313
    =?Utf-8?B?TWljaGFlbCBUYXlsb3I=?=
    Oct 19, 2004
  5. AndrewF
    Replies:
    1
    Views:
    744
    Bruce Barker
    Oct 10, 2005
Loading...

Share This Page