|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
How to disable the checkbox in the listviewHi,
I use checkbox in the listview, sometime, I want to disable these checkboxes, any body knows how to do so? Thanks advance Handle the ItemChecked or ItemCheck event and set the NewValue back to the
CurrentValue in the supplied event args, i.e.: Private Sub ListView1_ItemCheck(ByVal sender As Object, ByVal e As System.Windows.Forms.ItemCheckEventArgs) Handles ListView1.ItemCheck If e.Index = 0 Then e.NewValue = e.CurrentValue End If End Sub This will effectively prevent the user from changing the value /claes Show quoteHide quote "Li Pang" <LiP***@discussions.microsoft.com> wrote in message news:F54DC855-136C-4115-96D3-8DE0E8CBC510@microsoft.com... > Hi, > > I use checkbox in the listview, sometime, I want to disable these > checkboxes, any body knows how to do so? > > Thanks advance
Databound Radiobuttons
parsing an xml string into fields Simple question: How to find Elapsed time (in seconds) vb .net deployment Error Starting to debug Reading the application folder.. Screen Resolution Changes VSTO 2k5 Question conditional breakpoints should i use thread.abort to stop code execution? |
|||||||||||||||||||||||