List View

  • Thread starter Thread starter Ash Phillips
  • Start date Start date
A

Ash Phillips

Is there any way to change the List View Font Size at runtime?

I tried to use lvwListView.Font.Size = 8 but it tells me it's read only? I
could do it in VB6 - weird :S

Thanks in advance
 
Hi,

Try something like this.

ListView1.Font = New Font(ListView1.Font.FontFamily, 8)



Ken

-----------------------------

Is there any way to change the List View Font Size at runtime?

I tried to use lvwListView.Font.Size = 8 but it tells me it's read only? I
could do it in VB6 - weird :S

Thanks in advance
 
Thanks, I got it to work with the following:

lvwListView.Font = New Font(lvwListView.Font.Size, cboFontSize.Text)

However, it changes the Font Face?

I dont know what else to try.
 
Ash Phillips said:
Thanks, I got it to work with the following:

lvwListView.Font = New Font(lvwListView.Font.Size, cboFontSize.Text)

However, it changes the Font Face?

Didn't Ken's code work?!
 
Ahhh yes it did, Sorry!

I did try it last night though and it gave me an error but works fine now -
probably because it was 1am lol

Thanks guys :)
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top