-
July 29th, 1999, 03:03 AM
#1
Font in a ListView
I am tring to update the text's font size in a listview by the Properties (Font) or in the code
(
lvListView.Font.Size = 24
lvListView.Font.Bold = True
)
and both of them are not working!
how can i change the font size of the text within the ListView? any idea?
Thanks
Sigal
-
July 29th, 1999, 03:28 AM
#2
Re: Font in a ListView
Ok, if you are handling with listboxes the methods are FontSize and FontBold not Font.size and Font.Bold. Try like that. I did it and it worked.
Code:
dim i as integer
list1.fontsize = 24
list1.fontbold = true
for i = 0 to 10
list1.additem "test", i
next i
Hope this helps
Michael
-
July 29th, 1999, 04:02 AM
#3
Re: Font in a ListView
funny, I tried that and it worked:
l.Font.Bold = true
l.Font.Size = 20
Dim item as ListItem
set item = l.ListItems.Add
item.Text = "test"
in vb6 sp3
-
July 29th, 1999, 04:09 AM
#4
Re: Font in a ListView
Thanks but i am handling with ListView.
-
July 29th, 1999, 04:29 AM
#5
Re: Font in a ListView
Hi,
You can set Listview.font.bold = True (or False)
ListView.font.Size = xyz
ListView.font.Name = "Arial" (or whatever is available)
-
July 30th, 1999, 01:48 AM
#6
Re: Font in a ListView
Hello, again!
Forgive me my lousy english.
Sorry, I'm just a beginner. I didn't knew the difference. But, hey Thanks now I know. ListView is a view like in Windows NT explorers right side window am I right?
-
July 30th, 1999, 01:54 AM
#7
-
July 30th, 1999, 02:00 AM
#8
Re: Font in a ListView
Alright, maybe I someday learn How To Program Visual Basic. =)
Michael
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
|