473,394 Members | 1,371 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,394 software developers and data experts.

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 4285
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: David Miller | last post by:
Hello, I posted this to DotNet.Framework.Controls a week ago or so and got no response, so now I will repost it here to see if anyone here knows anything about it... I have an application...
2
by: ashley | last post by:
How do i detect that the vertical scroll bar has been moved and how do i get the vertical scrollbar value from a listview. I need to do this to synchronise a textbox movement within the listview.
4
by: John Dann | last post by:
I have a listview control on a simple vb.net form that's populated programmatically. It is set to scrollable and a scroll bar duly appears. However the scroll bar doesn't allow the bottom rows of...
12
by: J L | last post by:
When I fill a listview, I resize the columns to fit the data. I need to know if the data will fit vertically or if there will be a vertical scroll bar. I need to know this so I can allow for it on...
2
by: | last post by:
Hi All, How can I get to scroll bars of a listview, I am trying to sync two listviews so I need to overload one of the listview, How can I achieve this ? Thank You.
0
by: alcurb | last post by:
I have a ListView control populated with 30 items. ListView height only allows you to see 20 rows at a time. I want to drag an item to the bottom of the list (to the last row), but ListView...
0
by: Jarppi | last post by:
Hi All, Not sure how to go about this one. I've got a windows form with five ListView controls, each listing the files in a seperate folder. What I want to achieve is this: When I scroll any...
7
by: Liz | last post by:
My ListView components seem to produce distortion when they are scrolled in Details view; it looks almost like the text has a "strike-through" attribute applied to it. Does anyone know of a fix...
5
by: Lord Zoltar | last post by:
Hello, I'm trying to force a listView to scroll to some location when a certain button is clicked on. I've found that the SendMessage function seems to be the choice way of doing it. Here's what...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.