By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,466 Members | 1,167 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,466 IT Pros & Developers. It's quick & easy.

no resize columns in listview

P: n/a
JR
Hi I use this code to bloc the resize from columnheaders. the problem is
that all or non columns are blockt. I want to choice with column is fixt

What must I add/change

Jan

<StructLayout(LayoutKind.Sequential)Public Structure NMHDR

Public hwndFrom As IntPtr

Public idFrom As Integer

Public code As Integer

End Structure

Protected Overrides Sub WndProc(ByRef m As System.Windows.Forms.Message)

' Dim nCol As Integer

' 'Exit Sub

If m.Msg = WM_NOTIFY Then

Dim hdr As NMHDR = CType(m.GetLParam(GetType(NMHDR)), NMHDR)

HDN_BEGINTRACKW Then

m.Result = New IntPtr(1)

Exit Sub

ElseIf hdr.code = HDN_DIVIDERctrlPlus Then 'ctrl+

'handled in keydown because no icon if handled here

'm.Result = New IntPtr(1)

'Exit Sub

ElseIf hdr.code = HDN_DIVIDERDBLCLICK Then 'double click

m.Result = New IntPtr(1)

Exit Sub

End If

End If

MyBase.WndProc(m)

End Sub

Jul 27 '07 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.