?
Solved

Resize listbox based on amount of data written

Posted on 2005-04-04
2
Medium Priority
?
235 Views
Last Modified: 2010-04-23
Hello all,

It appears I am not getting it ....

I have anchored a listbox to a form (top and left) and want the listbox to expand (or contract) based on the number of columns that I write  to the listbox in question.  

Is this a simple task (please no links, my head is swimming after trying to disect some of the sample code)?

Thanks much,
DMV
0
Comment
Question by:DMV
[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
2 Comments
 
LVL 1

Accepted Solution

by:
basetew earned 2000 total points
ID: 13703023
ListBox is far too cut-down/feeble for your needs.

Use ListView control instead. "If you want precise control over columns and what entries get placed in what columns, you should investigate the ListView control. The ListBox simply wraps the data to the next column once the data hits the bottom of the control." -some Microsoft guy.

For even more pro approach, use DataGrid. But try ListView first.


0
 

Author Comment

by:DMV
ID: 13703058
Thanks, I'll give it a try.

DMV
0

Featured Post

Industry Leaders: 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

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Suggested Courses
Course of the Month12 days, 7 hours left to enroll

777 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