By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,829 Members | 1,798 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,829 IT Pros & Developers. It's quick & easy.

ListView Scroll Bar

P: n/a
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
Share this Question
Share on Google+
6 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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.