|
-
Jul 9th, 2004, 03:00 PM
#1
Thread Starter
Junior Member
List View
Hi All!!
I have this list view. How can i prevent a user from selecting items?
Code:
Mylistview.NoSelectItemsSomething = true;
Thanks
-
Jul 10th, 2004, 01:34 AM
#2
Fanatic Member
mylistview.enabled=false???
-
Jul 10th, 2004, 09:18 PM
#3
Thread Starter
Junior Member
No quite, because it gets shaded... i just want to disable that blue rectangle that appears when a user clicks an item.
-
Jul 11th, 2004, 04:35 AM
#4
Hyperactive Member
Here you go!
Code:
listBox1.Items.Add("Hello");
listBox1.Items.Add("World");
listBox1.SelectionMode=System.Windows.Forms.SelectionMode.None;
Stephan
Keep Smiling - even if its hard 
Frankie Says Relax, wossname Says Yeah!
wossname:--Currently I'm wearing a gimp suit and a parachute.
C# - Base64 Blog
-
Jul 11th, 2004, 08:13 AM
#5
Thread Starter
Junior Member
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...
-
Jul 11th, 2004, 08:24 AM
#6
Hyperactive Member
Oh I am sorry, I should have read more closely
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:
Code:
lstView.HideSelection = true;
Other than that, I am sorry I dont know!
Stephan
Keep Smiling - even if its hard 
Frankie Says Relax, wossname Says Yeah!
wossname:--Currently I'm wearing a gimp suit and a parachute.
C# - Base64 Blog
-
Jul 11th, 2004, 09:30 AM
#7
Thread Starter
Junior Member
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!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|