Solved

WinFOrms ListBox

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

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
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Vb.Net Menu 1 21
Find value in LINQ result ? 4 17
Problem to picture file 3 38
How to change a specific bit from a file 2 19
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
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 gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

708 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

14 Experts available now in Live!

Get 1:1 Help Now