Solved

WinFOrms ListBox

Posted on 2013-06-12
13
369 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
 

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
DevOps Toolchain Recommendations

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

 
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

Suggested Solutions

For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
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…

863 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now