473,508 Members | 2,342 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Numbers in Listbox

I have a multicolumn list box where some columns contain numbers. These
are always left justified which makes reading the numbers a little
difficult.

Is there a way in which numbers can the right justified in Listbox
columns?

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 12 '05 #1
4 5436
"Devonish" <no*****@nowhere.com> wrote in message
news:40*********************@news.frii.net...
I have a multicolumn list box where some columns contain numbers. These
are always left justified which makes reading the numbers a little
difficult.

Is there a way in which numbers can the right justified in Listbox
columns?

If you want tighter control over the appearance, then you could consider
switching to a subform control. You can make it look pretty much like a
listbox and make it read-only, but get much more flexibility with the
format.
Fletcher
Nov 12 '05 #2

Thank you for the suggestion but I need to make a multiple selection
from
the listbox for later processing.

By that I mean that I want to be able to select a number of lines from
the
listbox and add appropriate entries to another table. A form does not
appear
to allow me to do this.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 12 '05 #3
See:
http://www.lebans.com/justicombo.htm
New Ver 2.1 Justification.zip is a database containing functions to
center and right justify data for List and Combo Boxes.

Major changes for Version 2.1 are:
Use standard API's instead of functions exposed in Access EXE.

Handle Multiple Columns

One Function for both Center and Right Alignment

Support for controls on SubForms

Huge increase in function execution speed

Clean code with comments
--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"Devonish" <no*****@nowhere.com> wrote in message
news:40*********************@news.frii.net...
I have a multicolumn list box where some columns contain numbers. These are always left justified which makes reading the numbers a little
difficult.

Is there a way in which numbers can the right justified in Listbox
columns?

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


Nov 12 '05 #4
"Devonish" <no*****@nowhere.com> wrote in message
news:40*********************@news.frii.net...

Thank you for the suggestion but I need to make a multiple selection
from
the listbox for later processing.

By that I mean that I want to be able to select a number of lines from
the
listbox and add appropriate entries to another table. A form does not
appear
to allow me to do this.

Just as I was typing try http://lebans.com/ I see Stephen has posted
himself. The downside of this is, is that there will be a whole bunch of
code which you will have to either try and understand, or you simply cut,
paste and don't worry.

I do understand the complication you mention, but there might be some life
in the subform idea yet. See if you like Stephen's idea first.

Fletcher
Nov 12 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
18141
by: Rookie | last post by:
I need to display several columns of numbers in a textbox. I wish to display the columns with the decimal point position aligned vertically. I have found that the # digit placeholders do not...
17
3089
by: amber | last post by:
Hello. Can someone tell me what I may be doing wrong here? I'm using the code (lboxRP is a listbox): Dim newRPindex As Integer newRPindex = Me.lboxRP.FindString(RP)...
1
1629
by: ColinWard | last post by:
I have the following loop which goes through and adds items to a listbox. the items have been selected by the user from a file open dialog. Right now all that shows up is the filename. I would like...
2
12621
by: rammohan | last post by:
i want to implement an option similar to line numbers option in c# editor. how can i display line numbers on left side in text box.how can i know the present cursor location with respect to...
6
2858
by: Chris Leuty | last post by:
I am populating a multiselect Listbox from a dataset, with the content of the listbox filled by one table, and the selections determined from another table. So far, I have been keeping the dataset...
8
9412
by: Hei | last post by:
Hi, any ideas how to constrain the numbers of item can check in CheckListBox. i would force user can only check one item. thx William
1
1443
by: shank | last post by:
Imagine a CD of say 20 songs Each song is a table row I need a way for the user to change the way the songs are listed by allowing them to change the track numbers. What is the smartest...
3
2272
by: Ali Chambers | last post by:
Hi, I have created a listbox called "dtlist1" on my VB.NET form. I call a procedure as follows: Private Sub openfile(flname As String) dtlist1.Items.Clear() etc..
2
2342
by: new | last post by:
Hello I am using the following to calculate the number of visible lines in a listbox. This works, but when I add a horizontal scroll bar it does not work correctly. How can I subtract the size of...
0
7129
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7333
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7061
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7502
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5637
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4716
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3194
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1566
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
769
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.