.Net ListView Control Read Only With Scroll Bar


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
 
Ad

Advertisements


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