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.
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: