469,626 Members | 1,712 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,626 developers. It's quick & easy.

ListView Scroll Bar

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?
Oct 3 '06 #1
6 3888
I have not tried, but you might want to check this one:
http://forums.microsoft.com/MSDN/Sho...96104&SiteID=1

"Mike Johnson" <Mi*********@discussions.microsoft.comwrote in message
news:05**********************************@microsof t.com...
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?

Oct 4 '06 #2
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?

"Siva M" wrote:
I have not tried, but you might want to check this one:
http://forums.microsoft.com/MSDN/Sho...96104&SiteID=1

"Mike Johnson" <Mi*********@discussions.microsoft.comwrote in message
news:05**********************************@microsof t.com...
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?

Oct 5 '06 #3
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.

"Mike Johnson" <Mi*********@discussions.microsoft.comwrote in message
news:B3**********************************@microsof t.com...
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?

"Siva M" wrote:
I have not tried, but you might want to check this one:
http://forums.microsoft.com/MSDN/Sho...96104&SiteID=1

"Mike Johnson" <Mi*********@discussions.microsoft.comwrote in message
news:05**********************************@microsof t.com...
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?

Oct 6 '06 #4
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?

"Siva M" wrote:
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.

"Mike Johnson" <Mi*********@discussions.microsoft.comwrote in message
news:B3**********************************@microsof t.com...
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?

"Siva M" wrote:
I have not tried, but you might want to check this one:
http://forums.microsoft.com/MSDN/Sho...96104&SiteID=1

"Mike Johnson" <Mi*********@discussions.microsoft.comwrote in message
news:05**********************************@microsof t.com...
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?

Oct 6 '06 #5
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.

"Mike Johnson" <Mi*********@discussions.microsoft.comwrote in message
news:DC**********************************@microsof t.com...
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?

"Siva M" wrote:
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.

"Mike Johnson" <Mi*********@discussions.microsoft.comwrote in message
news:B3**********************************@microsof t.com...
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?

"Siva M" wrote:
I have not tried, but you might want to check this one:
http://forums.microsoft.com/MSDN/Sho...96104&SiteID=1

"Mike Johnson" <Mi*********@discussions.microsoft.comwrote in message
news:05**********************************@microsof t.com...
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?

Oct 7 '06 #6
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?

"Siva M" wrote:
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.

"Mike Johnson" <Mi*********@discussions.microsoft.comwrote in message
news:DC**********************************@microsof t.com...
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?

"Siva M" wrote:
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.

"Mike Johnson" <Mi*********@discussions.microsoft.comwrote in message
news:B3**********************************@microsof t.com...
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?

"Siva M" wrote:
I have not tried, but you might want to check this one:
http://forums.microsoft.com/MSDN/Sho...96104&SiteID=1
>
"Mike Johnson" <Mi*********@discussions.microsoft.comwrote in message
news:05**********************************@microsof t.com...
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?
>
>

Oct 10 '06 #7

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by David Miller | last post: by
2 posts views Thread by ashley | last post: by
4 posts views Thread by John Dann | last post: by
12 posts views Thread by J L | last post: by
2 posts views Thread by | last post: by
7 posts views Thread by Liz | last post: by
5 posts views Thread by Lord Zoltar | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.