Re: TreeView 2.0 Help Please - Petzold Code Included

Tech-Archive recommends: Fix windows errors by optimizing your registry



Okay, I see your problem now. I added one line of code "node.Collapse();".
Try this and see if the solution is to your liking.

Russ.

protected override void OnBeforeExpand(TreeViewCancelEventArgs args)
{
base.OnBeforeExpand(args);

BeginUpdate();

// Add the subdirectories of each subnode about to bedisplayed.
foreach (TreeNode node in args.Node.Nodes)
{
AddDirectories(node);

node.Collapse(); // New line of code.
}

EndUpdate();
}


.



Relevant Pages

  • Re: Howies wig and his movie career.
    ... Go change your dress, Poopariah. ... Yeah, okay. ... I am liking boom's new dress tactic. ...
    (alt.fan.howard-stern)
  • Re: How to parse XML in C# (tooltips)
    ... Okay, I solved it my self by adding a 'a href', see code below: ... protected override void Render ... window.open; myWin.document.write(\"" +helpString+ ... control the window size, color and name - how do I write that into the ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: ASTROs vs White Sox
    ... > It's mostly just a liking for specific types of music. ... Nobody wears ... > clothes from Hot Topic or anything like that... ... Okay, good. ...
    (alt.smokers.cigars)