Hi all,
Is there anyway that I could align the text in my listbox to the right justification?
Printable View
Hi all,
Is there anyway that I could align the text in my listbox to the right justification?
Try Right-Align List Box Data sample created by Randy Birch.
It would be nice if some one can generate a Module with a function so that one can
Call AlignListBox(List1, Right)
and how to modify the code to centre align the listbox means to add functionality of
Call AlignListBox(List1, Center)
See the code I just submitted to the code bank.Quote:
Originally Posted by paralinx
http://www.vbforums.com/showthread.php?p=2434949
:wave:
Really nice work, I have gone through the code and tested it too.Quote:
Originally Posted by daydee
Some suggetions
1. Insted of placing a picture box Some API Calls can be used to measure the width of text
2. the Function is needed to be modify such that AlignList(Listboxname, Align) so it will align all the items and one more function which is already implemented by u is AddAlignedItem("String", List, Align)