|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
TreeviewHi,
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 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 > see an article I wrote in April 2006 at http://emoreau.s2i.com/
-- Show quoteHide quoteHTH Éric Moreau, MCSD, Visual Developer - Visual Basic MVP Conseiller Principal / Senior Consultant S2i web inc. (www.s2i.com) http://emoreau.s2i.com/ "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 > 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 > 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 >> > >
SQL parameter: what is wrong here?
WebRequest.Create Exporting a vb.net datagrid to excel Formatting text w/VB.NET Abstraction question Calling a VB.NET-DLL FROM VB6 drawing a rectangle in a form VB.NET Progress Bar - Recursive Search DataGridView visible columns Iterating through the records in a dataset |
|||||||||||||||||||||||