Hi,
"Robert W." <Ro*****@discussions.microsoft.com> wrote in message
news:AC**********************************@microsof t.com...
In a WinForms app is there an easy way to center the text entries added to
a
listbox?
AFAIK there is no way of doing this..
There are several ways to do it though:
1- Calculate the size of the string in the display ( using
Graphinc.MeasureString ) and then insert the correct number of whitespaces
around the text.
2- Write your own control , take a look at the OwnerDraw control from
opennetcf.org (there is also a forum posting about this control)
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation