|
-
May 3rd, 2003, 02:25 PM
#1
Thread Starter
Addicted Member
Change Font of a ListView Item at Runtime
Please tell me
Is it possible to change the Font or Font style (Bold/Italic etc.) at run time. If it is possible then please tell me how ?
Thanks
-
May 3rd, 2003, 03:09 PM
#2
Sleep mode
Sure , this way :
VB Code:
Dim fnt As New FontDialog()
fnt.ShowDialog()
Me.ListView1.Font = fnt.Font
-
May 3rd, 2003, 03:16 PM
#3
Thread Starter
Addicted Member
Thanks Pirate
Let me tell more:
1. I want to change it programatically.
2. I want to change font of only one item (not all)
The functionality I want to give is, when user select a Item, the selected Item's font will change.
Thanks
-
May 3rd, 2003, 03:31 PM
#4
Sleep mode
Is this what you mean ?
VB Code:
Me.ListView1.Font = New System.Drawing.Font("Times New Roman", 10)
-
May 3rd, 2003, 03:35 PM
#5
Sleep mode
This would change font property for the first item in the listview collection items .
VB Code:
Me.ListView1.Items.Item(0).Font = New System.Drawing.Font("Times New Roman", 10)
-
May 6th, 2003, 12:08 AM
#6
Thread Starter
Addicted Member
Change Font of a ListView Item at Runtime (Solved)
Thanks Pirate, its solved
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
|