- Joined
 - Oct 9, 2007
 
- Messages
 - 1
 
- Reaction score
 - 0
 
Hi
 
I'm using the .Net 2.0 Windows ListView control. I want to make the control readonly, but keep the scroll bar enabled. I can use the following code instead of setting Enabled = True, but this does not stop double clicking from changing the Checked state.
 
Protected Overrides Sub OnItemCheck(ByVal e As System.Windows.Forms.ItemCheckEventArgs)
If _blnDisabledWithScrolling Then
e.NewValue = e.CurrentValue
Else
MyBase.OnItemCheck(e)
End If
End Sub
 
Any suggestions on how I get make the control truely disabled while keeping the scrollbar working?
 
John
				
			I'm using the .Net 2.0 Windows ListView control. I want to make the control readonly, but keep the scroll bar enabled. I can use the following code instead of setting Enabled = True, but this does not stop double clicking from changing the Checked state.
Protected Overrides Sub OnItemCheck(ByVal e As System.Windows.Forms.ItemCheckEventArgs)
If _blnDisabledWithScrolling Then
e.NewValue = e.CurrentValue
Else
MyBase.OnItemCheck(e)
End If
End Sub
Any suggestions on how I get make the control truely disabled while keeping the scrollbar working?
John