Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 387
  • Last Modified:

WinFOrms ListBox

How the hey is the font size set in vb code on a WInFOrms ListBox
0
lrbrister
Asked:
lrbrister
2 Solutions
 
Meir RivkinFull stack Software EngineerCommented:
can u rephrase the question?
0
 
Meir RivkinFull stack Software EngineerCommented:
the listbox has default font attributes which u can change in the Proprieties pane
screenshot
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
lrbristerAuthor Commented:
sedgwick
I need to set the items font size smaller in VB
0
 
käµfm³d 👽Commented:
e.g.

Me.ListBox1.Font = New Font(Me.ListBox1.Font.FontFamily, Me.ListBox1.Font.SizeInPoints - 1)

Open in new window

0
 
Jacques Bourgeois (James Burger)Commented:
ListBox1.Font = New Font(ListBox1.Font.Name, 6)
0
 
Meir RivkinFull stack Software EngineerCommented:
u can set them any number you want (even 1).
how small do u want the font to be?
0
 
lrbristerAuthor Commented:
Thanks.
YOu guys had it first
0
 
Meir RivkinFull stack Software EngineerCommented:
@lrbrister
how my suggestion is wrong?
0
 
lrbristerAuthor Commented:
sedgewick
Your images were correct of course.
But the specific question was how to do it in vb code
And kaufmed and JamesBurger answered that 4 seconds apart.
So...my choice...I gave the bulk to kaufmed and a nod to JamesBurger
0
 
Meir RivkinFull stack Software EngineerCommented:
ok, u should have specified that u need code or to be more precise do it programmatically.
0
 
lrbristerAuthor Commented:
sedgewick...
My original question specificaqlly said in vb code

Anyway...
I'll try and be more clear.  Thanks for your input
0
 
Meir RivkinFull stack Software EngineerCommented:
u right, my bad.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now