How to get control if you resize the width of a Column in a ListView 
Author Message
 How to get control if you resize the width of a Column in a ListView

I've a ListView with several columns (report view). Because you can't
center the items in the first column I've added a second column where I
can center the items. And know I'd like to hide the first column.
Because hiding of a column is also impossible I set its width to 0
(zero). Now I'd like to set its width to 0 (zero) each time someone
tries to resize column one with the mouse.
Does anyone know how I can get control if someone has resized the first
column?

Any help and information are very appreciated
Stefan



Wed, 18 Aug 2004 02:52:37 GMT  
 How to get control if you resize the width of a Column in a ListView
http://www.mvps.org/vbnet/code/subclass/lvheadernotifications.htm

--

Randy Birch
MVP Visual Basic

http://www.mvps.org/vbnet/

Please respond only to the newsgroups so all can benefit.

*** If you call the Sleep API in Bill's latest, will it have .NET dreams?
***


Quote:
> I've a ListView with several columns (report view). Because you can't
> center the items in the first column I've added a second column where I
> can center the items. And know I'd like to hide the first column.
> Because hiding of a column is also impossible I set its width to 0
> (zero). Now I'd like to set its width to 0 (zero) each time someone
> tries to resize column one with the mouse.
> Does anyone know how I can get control if someone has resized the first
> column?

> Any help and information are very appreciated
> Stefan



Thu, 19 Aug 2004 10:09:12 GMT  
 How to get control if you resize the width of a Column in a ListView
Thanks for the link.
Stefan
Quote:

> http://www.mvps.org/vbnet/code/subclass/lvheadernotifications.htm

> --

> Randy Birch
> MVP Visual Basic

> http://www.mvps.org/vbnet/

> Please respond only to the newsgroups so all can benefit.

> *** If you call the Sleep API in Bill's latest, will it have .NET dreams?
> ***



> > I've a ListView with several columns (report view). Because you can't
> > center the items in the first column I've added a second column where I
> > can center the items. And know I'd like to hide the first column.
> > Because hiding of a column is also impossible I set its width to 0
> > (zero). Now I'd like to set its width to 0 (zero) each time someone
> > tries to resize column one with the mouse.
> > Does anyone know how I can get control if someone has resized the first
> > column?

> > Any help and information are very appreciated
> > Stefan



Fri, 20 Aug 2004 05:13:31 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. ListView column width = ListView width ?

2. Auto resizing column width for grid and listview...

3. Auto resizing column width for grid and listview...

4. Auto resizing column width for grid and listview...

5. Auto resizing column width for grid and listview...

6. Getting column widths of listview

7. Total width of columns = Width of ListView

8. Total width of columns = Width of ListView

9. Total width of columns = Width of ListView

10. Total width of columns = Width of ListView

11. Setting column widths in Listview control

12. How to change column width in ListView control in lvwList mode

 

 
Powered by phpBB® Forum Software