ListView columns resizing

G

Guest

Hi,

Is there a way to get notified when the user tries to resize a column in a
ListView ( set for Details view).
Thank you
 
C

Carlos J. Quintero [VB MVP]

At least in .NET 1.x, not natively, you have to use the Win32 API to trap
the messages HDN_BEGINTRACK, HDN_DIVIDERDBLCLICK. See:

http://www.vbcodemagician.dk/tips/cctrls_lvpreventresize.htm

It's VB6 code. In .NET the windows subclassing is simpler, just override the
WndProc of the control.

--

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top