Solved

List Boxes

Posted on 2000-02-29
3
215 Views
Last Modified: 2010-04-02
I have a table set up in access with 6 fields.  I want to be able to display all the records in a list box to the user.  I have variables taking in the records but how do i display these variables in the listbox in the same format as the table
0
Comment
Question by:Yozzer
3 Comments
 
LVL 8

Expert Comment

by:gelbert
ID: 2569916
You can use standard 32bit Microsoft List control which allows you to create as many columns as you wanted. If you can represent your fields as strings or digits then you can format then which ever way you want before inserting into list control
0
 
LVL 14

Expert Comment

by:AlexVirochovsky
ID: 2571521
May be better use MsGrid Control(if
you want display as Table, not ListBox).
What compiler do you use? For VC you
can find examples of using MsGrid in
www.codeguru.com
0
 

Accepted Solution

by:
sinclairj earned 50 total points
ID: 2590621
If you really want a listbox use Ctring::Format to create one string of all the values then AddString with the result.

Otherwise suggest using listctrl as gelbert mentioned
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

864 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

18 Experts available now in Live!

Get 1:1 Help Now