Solved

List Boxes

Posted on 2000-02-29
3
223 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

752 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