Discussion:
Scroling ListBox
(too old to reply)
Mad
2004-01-27 05:14:25 UTC
Permalink
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.
Rick Rothstein
2004-01-27 01:32:45 UTC
Permalink
Post by 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.
http://vbnet.mvps.org/code/listapi/sethorizontalextent.htm

Rick - MVP
Mad
2004-01-27 06:42:07 UTC
Permalink
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.
Post by Rick Rothstein
Post by Mad
Hello to all, I am new to vb6 and I have been trying to make a listbox
with
Post by Mad
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/sethorizontalextent.htm
Rick - MVP
Rick Rothstein
2004-01-27 13:31:03 UTC
Permalink
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
Post by 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.
Post by Rick Rothstein
Post by Mad
Hello to all, I am new to vb6 and I have been trying to make a listbox
with
Post by Mad
a horizontal and vertical scrollbar. For example, like the one on the
program Address book that is found on all Windows operating systems.
Is
Post by Mad
it
Post by Rick Rothstein
Post by Mad
possible to do it on VB6?
Any help will be greatly appreciated.
http://vbnet.mvps.org/code/listapi/sethorizontalextent.htm
Rick - MVP
Bob Butler
2004-01-27 15:06:24 UTC
Permalink
Post by 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.
A listbox doesn't have headings... a ListView does... is that what you want?
Post by Mad
Post by Rick Rothstein
Post by Mad
Hello to all, I am new to vb6 and I have been trying to make a listbox
with
Post by Rick Rothstein
Post by Mad
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"
Post by Mad
it
Post by Rick Rothstein
Post by Mad
possible to do it on VB6?
Any help will be greatly appreciated.
http://vbnet.mvps.org/code/listapi/sethorizontalextent.htm
Steve Gerrard
2004-01-28 02:21:01 UTC
Permalink
Post by Bob Butler
Post by Mad
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.
Bob Butler
2004-01-28 14:14:48 UTC
Permalink
Post by Mad
Post by Bob Butler
Post by Mad
a horizontal and vertical scrollbar. For example, like the one
on the
Post by Bob Butler
Post by Mad
program Address book that is found on all Windows operating
systems. Is
Post by Bob Butler
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.

Loading...