Solved

List Boxes

Posted on 2000-02-29
3
214 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

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…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
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.

763 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

6 Experts available now in Live!

Get 1:1 Help Now