windowsforms.treeview control question

  • Thread starter Thread starter rhaazy
  • Start date Start date
R

rhaazy

I am using VS2003 and am workinig with the form.treeview class.

I want to add a piece of code to my "double-click" event that checks to

see if the selected node has any children. If it does, then I need it
to do a toggle, if it doesn't then it will execute the desired code.
Any suggestions on how to do this?
 
Very simple. Long day friday and wasn't thinking very clear,lol.

treeView1.selectedNode.Nodes.Count

if count == 0 then there are no children, very simple.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

visitor pattern 1
A question on TreeViews 4
Finding A Specific TreNode 6
Why does this code work? 3
TreeView Questions 1
Excel Import XML into Excel 0
Class recursion question 3
Is there a way ? 4

Back
Top