Solved

List Boxes

Posted on 2000-02-29
3
216 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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
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…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

821 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