ListView Scroll Bar

G

Guest

I have a ListView on a form, I'm displaying the items as a list. The Scroll
is set to true. I want to know how can I set the scroll bar to Vertical?
 
G

Guest

I tried this, but can't seem to get to work.

Not sure what was meant by the instructions to get the scroll bars width.
Can someone please explain?

I placed the listview within a panel and played with width value but was
unable to make it work. Is there any properties that must also be set?
 
S

Siva M

Here is it: Place a Panel control on the form and a ListView control inside
it (at location 0, 0). Set the View property to List and Scrollable to
False. Reduce the width of the ListView to make only to show the first
column. For the Panel control, set AutoScroll property to true. You should
get the vertical scroll bar now...

HTH.

I tried this, but can't seem to get to work.

Not sure what was meant by the instructions to get the scroll bars width.
Can someone please explain?

I placed the listview within a panel and played with width value but was
unable to make it work. Is there any properties that must also be set?
 
G

Guest

I don't what I'm doing wrong but I can't get it to work.

Here are the settings for each item

Panel

AutoScroll: True
Width: 740
Height: 164


Listview

Scrollable: False
Location: 0,0
Column: width: 740
Width: 740
Height: 164

What am I doing wrong?
 
S

Siva M

Your Panel and ListView heights are the same - this will NOT show the scroll
bar in the panel. Only when the ListView hight exceeds the Panel bounderies,
will you see the Panel scroll bar.

I don't what I'm doing wrong but I can't get it to work.

Here are the settings for each item

Panel

AutoScroll: True
Width: 740
Height: 164


Listview

Scrollable: False
Location: 0,0
Column: width: 740
Width: 740
Height: 164

What am I doing wrong?
 
G

Guest

OK, I changed the height of the Panel so it's now smaller than the Listview.
I get the vertical Scroll Bar but it does not scroll through the items. I
have a total of 33 items and only 10 show in the listview at a time. The
scroll bar that is displayed does not scroll through the entire list. What's
Wrong?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top