Hi All!!
I have this list view. How can i prevent a user from selecting items?
Code:
Mylistview.NoSelectItemsSomething = true;
Thanks :)
Printable View
Hi All!!
I have this list view. How can i prevent a user from selecting items?
Code:
Mylistview.NoSelectItemsSomething = true;
Thanks :)
mylistview.enabled=false???
No quite, because it gets shaded... i just want to disable that blue rectangle that appears when a user clicks an item.
Here you go!
StephanCode:listBox1.Items.Add("Hello");
listBox1.Items.Add("World");
listBox1.SelectionMode=System.Windows.Forms.SelectionMode.None;
Thanks Peppa.
But that doens't work on list views... :(
It works perfectly on listboxes, problem is i need to uselist view to see the columns description....
Is there a similar property on list views? I can't find it...
:(
Oh I am sorry, I should have read more closely :blush:
No I dont think there is something similar on Listview, but then again I am an amateur in GUI things!
This will hide your selection once your listview looses focus:
Other than that, I am sorry I dont know!Code:lstView.HideSelection = true;
Stephan
np Peppa,
I try to use a listbox with labels for columns!
Just want to congratulate you on your excelente base 64 Enconder - Decoder. I'm using parts of your code now.
Thanks!!! Nice work there!!