|
-
Dec 14th, 2009, 12:42 AM
#1
Preventing a User from selecting a TreeView Node
I have a TreeView that I am using for display purposes only. I don't want the user to be able to select any of the nodes. Setting the enabled property of the form to False doesn't suffice since it changes the entire look of the nodes.
I tried canceling the select action in the BeforeExpand event. It kind of works. It selects, then de-selects the item. I'm going to play around with other events to see what I can come up with, but would appreciate any information.
Thanks
CodeBank contributions: Process Manager, Temp File Cleaner
 Originally Posted by SJWhiteley
"game trainer" is the same as calling the act of robbing a bank "wealth redistribution"....
-
Dec 14th, 2009, 01:03 AM
#2
Re: Preventing a User from selecting a TreeView Node
Presumably the BeforeSelect event would be the way to go rather than BeforeExpand.
-
Dec 14th, 2009, 01:28 AM
#3
Re: Preventing a User from selecting a TreeView Node
 Originally Posted by jmcilhinney
Presumably the BeforeSelect event would be the way to go rather than BeforeExpand.
BeforeSelect is the event I'm using. I'm not sure why I typed BeforeExpand :P
CodeBank contributions: Process Manager, Temp File Cleaner
 Originally Posted by SJWhiteley
"game trainer" is the same as calling the act of robbing a bank "wealth redistribution"....
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
|