1,105,225 Community Members

Listview size

Member Avatar
Bold Eagle
Newbie Poster
12 posts since Nov 2008
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]

How do you change the size of a listview when the number of rows grow when a different where select is commanded on textchange. I have a textchange on coustomer name which fills the listview with just the names that start with the letters as they are typed in, this bring up the listview with those customers. I would like to change the lenght of the listiew when the row count increases.

Can anyone give me a where to start on this.

Member Avatar
Posting Genius (adatapost)
6,703 posts since Oct 2008
Reputation Points: 1,811 [?]
Q&As Helped to Solve: 1,272 [?]
Skill Endorsements: 61 [?]

>Listview size

I'm not quite following the problem. My understanding from your description is that you want to set height & width of listview control.

Member Avatar
Newbie Poster
3 posts since Mar 2010
Reputation Points: 0 [?]
Q&As Helped to Solve: 1 [?]
Skill Endorsements: 0 [?]

Is this what you mean,

Dim test As System.Drawing.Size

test.Width = 400
test.Height = 200
ListView1.Size = test

This will set the width to 400 and height to 200 on a listview

I hope this helps.


This article has been dead for over three months: Start a new discussion instead
Start New Discussion
Tags Related to this Article