Listview width question

hbrems

has no clue...
Local time
Tomorrow, 00:39
Joined
Nov 2, 2006
Messages
181
Hi all,

I have a ListView which is anchored to all sides of the form. When I maximize the form, the ListView will grow in size accordingly. However, the ListView.Height and ListView.Width properties don't change to reflect the new format. For example:

- Default ListView.Width = 8000
- I maximize the form, the ListView grows in size
- The ListView.Width property = still 8000 instead of the new size

Is there any way to get the actual size of the ListView after maximizing the form?

The reason why I'm asking is because I'd like to distribute the width of the ListView columns evenly after maximizing the form.
 
Last edited:
You may have to not anchor the control, but rather explicitly set it's size during a form resize. Use the InsideWidth and InsideHeight properties of the form.
Cheers,
Mark
 

Users who are viewing this thread

Back
Top Bottom