TreeView CheckBoxes, but not their children.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm writing an app in C# .net 2.0. I want to have a TreeView where the first
level of nodes would have check boxes, but their subsequent children would
not have check boxes.

Is this achievable using the .net controls? If not, how can I make this
possible?

Thanks,
Justin
 
Hi Justin,

Thanks for your post.

Normally, there is no build-in support for this in .Net, however, we can
p/invoke Win32 SendMessage API to send TVM_SETITEM message to the treeview
control to turn off certain node's checkbox. For more information, please
refer to my original reply in the link below:
http://groups.google.com/group/microsoft.public.dotnet.framework.windowsform
s/browse_frm/thread/d3cf518369b6d58a/69a62ef36dcd8eb8?lnk=st&q=checkbox+tree
view+%22Jeffrey+Tan%22&rnum=4&hl=zh-CN#69a62ef36dcd8eb8

Thanks

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Back
Top