473,395 Members | 1,516 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Scroling ListBox

Mad
Hello to all, I am new to vb6 and I have been trying to make a listbox with
a horizontal and vertical scrollbar. For example, like the one on the
program Address book that is found on all Windows operating systems. Is it
possible to do it on VB6?

Any help will be greatly appreciated.


Jul 17 '05 #1
6 6803
> Hello to all, I am new to vb6 and I have been trying to make a listbox
with
a horizontal and vertical scrollbar. For example, like the one on the
program Address book that is found on all Windows operating systems. Is it
possible to do it on VB6?

Any help will be greatly appreciated.


http://vbnet.mvps.org/code/listapi/s...ntalextent.htm

Rick - MVP
Jul 17 '05 #2
Mad
That is good info, yet what about the headings? by heading I mean the
buttons on top of the list that lets you sort the list.

"Rick Rothstein" <ri************@NOSPAMcomcast.net> wrote in message
news:Cc********************@comcast.com...
Hello to all, I am new to vb6 and I have been trying to make a listbox

with
a horizontal and vertical scrollbar. For example, like the one on the
program Address book that is found on all Windows operating systems. Is it possible to do it on VB6?

Any help will be greatly appreciated.


http://vbnet.mvps.org/code/listapi/s...ntalextent.htm

Rick - MVP


Jul 17 '05 #3
VB's ListBox does not support multiple columns nor headers. It is possible
to fake the columns, but not (as far as I know) the headers. However, VB
does have a ListView control which can be used in the manner you suggest.
The ListView can be found clicking Project/Components from VB's menu bar and
selecting Microsoft Windows Common Controls from the list that appears. With
the ListView highlighted (selected), press F1 to get to the help file to see
how to use it. The main entry briefly discusses the displaying headers and
you can look up the different properties having to do with headers in the
help files. Specifically, look at the SortOrder property which gives an
example that might help you. The ListView control is a robust (read
complicated) control offering lots of flexibility, but requiring more time
to learn. Depending on how old your help files are, be sure to turn on the
Visual Basic Documentation in the Active Subset to filter out all of the
..NET ListView help.

Rick - MVP
"Mad" <ma*****@coqui.net> wrote in message
news:1d******************@fe02.usenetserver.com...
That is good info, yet what about the headings? by heading I mean the
buttons on top of the list that lets you sort the list.

"Rick Rothstein" <ri************@NOSPAMcomcast.net> wrote in message
news:Cc********************@comcast.com...
Hello to all, I am new to vb6 and I have been trying to make a listbox with
a horizontal and vertical scrollbar. For example, like the one on the
program Address book that is found on all Windows operating systems.
Is it possible to do it on VB6?

Any help will be greatly appreciated.


http://vbnet.mvps.org/code/listapi/s...ntalextent.htm

Rick - MVP


Jul 17 '05 #4
"Mad" <ma*****@coqui.net> wrote in message news:<1d******************@fe02.usenetserver.com>. ..
That is good info, yet what about the headings? by heading I mean the
buttons on top of the list that lets you sort the list.
A listbox doesn't have headings... a ListView does... is that what you want?
"Rick Rothstein" <ri************@NOSPAMcomcast.net> wrote in message
news:Cc********************@comcast.com...
Hello to all, I am new to vb6 and I have been trying to make a listbox with a horizontal and vertical scrollbar. For example, like the one on the
program Address book that is found on all Windows operating systems. Is

I have no idea what you mean by the "program Address book"
it possible to do it on VB6?

Any help will be greatly appreciated.


http://vbnet.mvps.org/code/listapi/s...ntalextent.htm

Jul 17 '05 #5

"Bob Butler" <bu*******@earthlink.net> wrote in message
news:fa*************************@posting.google.co m...
"Mad" <ma*****@coqui.net> wrote in message news:<1d******************@fe02.usenetserver.com>. ..
> a horizontal and vertical scrollbar. For example, like the one on the > program Address book that is found on all Windows operating

systems. Is
I have no idea what you mean by the "program Address book"


It's in Accessories, Bob. It uses a ListView in Report view.
Jul 17 '05 #6
"Steve Gerrard" <no*************@comcast.net> wrote in message news:<Cu********************@comcast.com>...
"Bob Butler" <bu*******@earthlink.net> wrote in message
news:fa*************************@posting.google.co m...
"Mad" <ma*****@coqui.net> wrote in message

news:<1d******************@fe02.usenetserver.com>. ..
> > a horizontal and vertical scrollbar. For example, like the one on the > > program Address book that is found on all Windows operating

systems. Is

I have no idea what you mean by the "program Address book"


It's in Accessories, Bob. It uses a ListView in Report view.


oh... the program "Address book".... I kept reading it as the "program
address book" and had no idea what book kept a list of program
addresses!
My bad.
Jul 17 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

17
by: amber | last post by:
Hello. Can someone tell me what I may be doing wrong here? I'm using the code (lboxRP is a listbox): Dim newRPindex As Integer newRPindex = Me.lboxRP.FindString(RP)...
9
by: Megan | last post by:
Hi- I'm creating a database of music bands with their cds and songs. I'm trying to program an SQL statement so that I can enter a string of text in a textbox, press the 'Enter' key, and have...
3
by: Paul T. Rong | last post by:
I have a listbox (of product names) control on my form. I want to pass the selected item (a product name) to a subform, and the product unitprice should apear automatically next to the product name...
8
by: Oddball | last post by:
Ok - I have a ListBox control and I'm ready to write my own DrawItem event handler. What I want to draw as the item is another control. I have created a user control that I would like to list in...
6
by: Chris Leuty | last post by:
I am populating a multiselect Listbox from a dataset, with the content of the listbox filled by one table, and the selections determined from another table. So far, I have been keeping the dataset...
7
by: Dave | last post by:
Hi all, After unsuccessfully trying to make my own dual listbox control out of arraylists, I decided to look for a 3rd party control. I've looked for over a week now and can't find anything but...
3
by: Ali Chambers | last post by:
Hi, I have created a listbox called "dtlist1" on my VB.NET form. I call a procedure as follows: Private Sub openfile(flname As String) dtlist1.Items.Clear() etc..
1
by: Sunray | last post by:
I have a form called the sales form and i have 2 sets of listboxes So what happens is. i add items form the bottom set of list boxes which are bound to a data base to the top set of list boxes which...
5
by: Academia | last post by:
(If you've seen this in the drawing NG, sorry. I inadvertently sent it there.) I have a listbox populated with Objects. The Class has a String field that ToString returns. I assume that...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.