I assume you mean checkbox (you wrote text box). The checkbox is just an
image in the state image list for the tree view (Windows generates 2 images
for you, one checked checkbox and one unchecked) so simply changing the
state image index for the node should work. Ofc, you'll need to add the
image for a disabled checkbox first. You can also replace the images with
your own if you'ld like. Here are some threads that might be of interest:
http://groups.google.com/groups?as_q...=2006&safe=off
/claes
"James Lennon" <Ja*********@discussions.microsoft.com> wrote in message
news:29**********************************@microsof t.com...
This will stop a user from checking the check box but the control does not
look disabled. I can set the foreground color of the text but not the
text
box. Is there a way to get a handle to the actual text box.
"Claes Bergefall" wrote:
Handle the BeforeCheck event and cancel any attempts to check it.
/claes
"James Lennon" <Ja*********@discussions.microsoft.com> wrote in message
news:93**********************************@microsof t.com... > Does anyone know how to disable a single check box in a Windows Forms
> TreeView control.