Solved

WinFOrms ListBox

Posted on 2013-06-12
13
371 Views
Last Modified: 2013-06-12
How the hey is the font size set in vb code on a WInFOrms ListBox
0
Comment
Question by:lrbrister
13 Comments
 
LVL 42

Expert Comment

by:sedgwick
ID: 39241065
can u rephrase the question?
0
 
LVL 22

Expert Comment

by:Om Prakash
ID: 39241070
0
 
LVL 42

Expert Comment

by:sedgwick
ID: 39241073
the listbox has default font attributes which u can change in the Proprieties pane
screenshot
0
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 

Author Comment

by:lrbrister
ID: 39241080
sedgwick
I need to set the items font size smaller in VB
0
 
LVL 75

Accepted Solution

by:
käµfm³d   👽 earned 350 total points
ID: 39241094
e.g.

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

Open in new window

0
 
LVL 40

Assisted Solution

by:Jacques Bourgeois (James Burger)
Jacques Bourgeois (James Burger) earned 150 total points
ID: 39241095
ListBox1.Font = New Font(ListBox1.Font.Name, 6)
0
 
LVL 42

Expert Comment

by:sedgwick
ID: 39241096
u can set them any number you want (even 1).
how small do u want the font to be?
0
 

Author Closing Comment

by:lrbrister
ID: 39241102
Thanks.
YOu guys had it first
0
 
LVL 42

Expert Comment

by:sedgwick
ID: 39241106
@lrbrister
how my suggestion is wrong?
0
 

Author Comment

by:lrbrister
ID: 39241127
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
 
LVL 42

Expert Comment

by:sedgwick
ID: 39241138
ok, u should have specified that u need code or to be more precise do it programmatically.
0
 

Author Comment

by:lrbrister
ID: 39241165
sedgewick...
My original question specificaqlly said in vb code

Anyway...
I'll try and be more clear.  Thanks for your input
0
 
LVL 42

Expert Comment

by:sedgwick
ID: 39241178
u right, my bad.
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question