Well, when you close the window, you iterate ListView.Columns to get the
Text and DisplayIndex pairs and you store them somewhere, for example in the
Windows registry
(HKEY_CURRENT_USER\Software\YourCompany\YourApp\Yo urWindow\YourListview).
When you load the window again, you retrieve the pairs and for each column
you set its DisplayIndex...
--
Best regards,
Carlos J. Quintero
MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com
"Brian Henry" <no****@nospam.com> escribió en el mensaje
news:%2***************@TK2MSFTNGP12.phx.gbl...
I am using .NET 2.0 at the moment, but not sure how to save the states and
restore them properly..