Here's an easy way to get some text aligned in a ListBox or ComboBox.
The only thing needed is a PictureBox control (named PixAlign) placed on your form.
You can of course set it visible = false since it is only needed for text alignment process.
VB Code:
  1. 'Usage
  2.     Call AlignText("Hello World", List1, vbCenter)
  3.     Call AlignText("Hello World", Combo1, vbRightJustify)'<-- modify the sub accordingly!
VB Code:
  1. 'inside a module
  2. Public Sub AlignText(ByVal txt As String, ByVal lstBox As ListBox, ByVal Alignment As AlignmentConstants)
  3. Dim i As Long, tmptxt As String
  4.    
  5.     tmptxt = txt
  6.    
  7.         With PixAlign
  8.         'Needed so the PictureBox
  9.         'is set to the required values first.
  10.         .ScaleMode = .Parent.ScaleMode
  11.         .Width = lstBox.Width
  12.         .FontName = lstBox.FontName
  13.         .FontSize = lstBox.FontSize
  14.         .FontBold = lstBox.FontBold
  15.        
  16.         Do While .TextWidth(tmptxt$) < .Width
  17.         'calculates the leftover spaces.
  18.         tmptxt$ = tmptxt$ & space(1)
  19.         i = i + 1
  20.         Loop
  21.        
  22.         End With
  23.    
  24.     i = i - 2
  25.    
  26.     Select Case Alignment
  27.     'align the text according to alignment constants.
  28.         Case vbLeftJustify
  29.         lstBox.AddItem txt
  30.        
  31.         Case vbRightJustify
  32.         lstBox.AddItem space(i& - 1) & txt$
  33.        
  34.         Case vbCenter
  35.         lstBox.AddItem space(i& \ 2) & txt$
  36.     End Select
  37.  
  38. End Sub
Cheers!