Results 1 to 5 of 5

Thread: [Resolved] listbox font size

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2001
    Location
    Indiana
    Posts
    612

    [Resolved] listbox font size

    In VB 6, I always set my listbox to Courier new, that way the columns would all line up.

    In ASP .Net, it looks to me like I can only choose smaller, x-large, etc... When I put data in the listbox with the same number of characters, the columns do not line up because differant letters take up more room than other letters.

    Anyone have any ideas?

    Thanks
    Last edited by indydavid32; Oct 22nd, 2003 at 02:11 PM.
    David Wilhelm

  2. #2
    PowerPoster Lethal's Avatar
    Join Date
    Oct 2000
    Location
    Ohio
    Posts
    2,496
    Try using Cascading Style Sheets

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2001
    Location
    Indiana
    Posts
    612
    I got it...

    VB Code:
    1. ListFuel.Font.Name = "Courier"

    Guess I should try more things out before I post questions here. Oh well, maybe this will help some other .Net Newbies...
    David Wilhelm

  4. #4
    PowerPoster Lethal's Avatar
    Join Date
    Oct 2000
    Location
    Ohio
    Posts
    2,496
    That's one way of doing it, but not very maintainable. I suggested Stylesheets because in the future, if you are asked to change the fonts for the site, you have to change only one place.

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2001
    Location
    Indiana
    Posts
    612
    Well, I'm a newbie and I don't know much about style sheets.

    I doubt I will have to change it in the future. The main thing is that it fits on the page, it is lined up for easy reading, and the data is right.

    This web page will mainly be used by only the employers and employees in the company I work for.

    Thanks for the advise though. I will have to check out style sheets and other aspects of ASP as I go along.
    David Wilhelm

Posting Permissions

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



Click Here to Expand Forum to Full Width