|
-
Oct 22nd, 2003, 02:04 PM
#1
Thread Starter
Fanatic Member
[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
-
Oct 22nd, 2003, 02:08 PM
#2
PowerPoster
Try using Cascading Style Sheets
-
Oct 22nd, 2003, 02:08 PM
#3
Thread Starter
Fanatic Member
I got it...
VB Code:
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...
-
Oct 22nd, 2003, 02:15 PM
#4
PowerPoster
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.
-
Oct 22nd, 2003, 02:27 PM
#5
Thread Starter
Fanatic Member
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|