Home All Groups Group Topic Archive Search About
Author
6 Sep 2006 8:31 PM
Jerry
Hi,

I created a treeview. I filled it with all the nodes I need. Now I would
like to deaktivate some nodes and activate them upon a given input.
"isvisible" is readonly. Isn't there any "enabled" property like the
textboxes have? If not, how can this be done?


Thanks,

Jerry

Author
7 Sep 2006 3:04 PM
Claes Bergefall
Define "deactivate". Does it mean that the node can't be selected, that it's
greyed, something else?

   /claes

Show quoteHide quote
"Jerry" <jerry***@gmx.net> wrote in message
news:ednb6s$81m$03$1@news.t-online.com...
> Hi,
>
> I created a treeview. I filled it with all the nodes I need. Now I would
> like to deaktivate some nodes and activate them upon a given input.
> "isvisible" is readonly. Isn't there any "enabled" property like the
> textboxes have? If not, how can this be done?
>
>
> Thanks,
>
> Jerry
>
Author
8 Sep 2006 10:43 AM
Eric Moreau
see an article I wrote in April 2006 at http://emoreau.s2i.com/

--


HTH

Éric Moreau, MCSD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
S2i web inc. (www.s2i.com)
http://emoreau.s2i.com/

Show quoteHide quote
"Jerry" <jerry***@gmx.net> wrote in message
news:ednb6s$81m$03$1@news.t-online.com...
> Hi,
>
> I created a treeview. I filled it with all the nodes I need. Now I would
> like to deaktivate some nodes and activate them upon a given input.
> "isvisible" is readonly. Isn't there any "enabled" property like the
> textboxes have? If not, how can this be done?
>
>
> Thanks,
>
> Jerry
>
Author
9 Sep 2006 10:36 AM
Jerry
Yepp Claes, that's what I meant.

I want it to be greyed out and that it can't be selected. Eric has a nice
page where he does this with a workaround. I'll try it tonight. Is there
another way?

Thanks,

Jerry



Show quoteHide quote
"Jerry" <jerry***@gmx.net> schrieb im Newsbeitrag
news:ednb6s$81m$03$1@news.t-online.com...
> Hi,
>
> I created a treeview. I filled it with all the nodes I need. Now I would
> like to deaktivate some nodes and activate them upon a given input.
> "isvisible" is readonly. Isn't there any "enabled" property like the
> textboxes have? If not, how can this be done?
>
>
> Thanks,
>
> Jerry
>
Author
11 Sep 2006 2:22 PM
Claes Bergefall
The BeforeSelect event is the way to go, just as Eric writes in his article.
You can change the color with the TreeNode.ForeColor property (not sure if
Eric covered that in his article). Setting it to SystemColors.GrayText
should give you the correct gray text.

   /claes

Show quoteHide quote
"Jerry" <jerry***@gmx.net> wrote in message
news:edu5fo$ran$03$1@news.t-online.com...
> Yepp Claes, that's what I meant.
>
> I want it to be greyed out and that it can't be selected. Eric has a nice
> page where he does this with a workaround. I'll try it tonight. Is there
> another way?
>
> Thanks,
>
> Jerry
>
>
>
> "Jerry" <jerry***@gmx.net> schrieb im Newsbeitrag
> news:ednb6s$81m$03$1@news.t-online.com...
>> Hi,
>>
>> I created a treeview. I filled it with all the nodes I need. Now I would
>> like to deaktivate some nodes and activate them upon a given input.
>> "isvisible" is readonly. Isn't there any "enabled" property like the
>> textboxes have? If not, how can this be done?
>>
>>
>> Thanks,
>>
>> Jerry
>>
>
>