Windows Develop Bookmark and Share   
 index > Windows Forms General > how to scroll a disabled listview
 

how to scroll a disabled listview

how to scroll a disabled listview
avinash_tp  Tuesday, June 12, 2007 9:37 AM

Hi ya,

When a listview is disabled you can't scroll it. However you can try to catch the event you want to disable and put Exit Sub in there

i.e:

Code Snippet

Private Sub ListView1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ListView1.SelectedIndexChanged

Exit Sub

End Sub

Hope that Helps

Cheers

Rizwan

R1ZWAN  Tuesday, June 12, 2007 10:26 AM

Hi ya,

When a listview is disabled you can't scroll it. However you can try to catch the event you want to disable and put Exit Sub in there

i.e:

Code Snippet

Private Sub ListView1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ListView1.SelectedIndexChanged

Exit Sub

End Sub

Hope that Helps

Cheers

Rizwan

R1ZWAN  Tuesday, June 12, 2007 10:26 AM

You can use google to search for other answers

Custom Search

More Threads

• Alpha Transparency in 2000 with .PNGs
• datagridview
• Getting the machine name
• About Buttons!
• Adding the result of a sql query to a listbox
• How to disable the focus on textbox at runtime ( | )
• Starting at "My Documents" in FolderBrowserDialog
• Problem with MSDN Example: Add Custom Information To A Treeview Control
• Simple formatting with CR.Net... where do I get started?
• Strange problem with TreeView images