Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
|
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 13th, 2004, 10:36 AM
Registered User
 
Join Date: Dec 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default help me on tree view

hi everybody.
I'm really need your help.
I'm recently work with treeview(system.windows.forms.treeview).And i found something that really strange.
i have a class with some event.
i'm also create a form class with a treeview on it.This form class have method that handle the event that raised by my class.this method will add some node on the tree view .it was succesfully triggered and the method that add the node executed.But strange the node doesn't appear on the tree view.Here is my code :
class :

public delegate void FillIt(string nodeText);
    public class DelegatedClass
    {
        public event FillIt GoFilling;
        public DelegatedClass()
        {
        }
        public void Notifikasi(string tes)
        {
            foreach (FillIt usil in GoFilling.GetInvocationList())
            {
                usil.BeginInvoke(tes ,null,null);
            }
        }
    }

in the form class i have this
member variable :
protected DelegatedClass _delegasi;

on konstructor :
_delegasi = new DelegatedClass();
_delegasi.GoFilling+=new FillIt(Tes );

on
some button i have :
_delegasi.Notifikasi(uiNodetextBox.Text);

method that handle delegate :
private void Tes(string pesan)
{
    controlledtreeView.Nodes.Add(pesan);
    controlledtreeView.Update();
}
When i run it and press the button it enter the tes method , but the node did't appear.
please help me
:(






Similar Threads
Thread Thread Starter Forum Replies Last Post
Tree View dotnetDeveloper ASP.NET 3.5 Basics 1 November 26th, 2008 05:05 PM
Tree view control g_vamsi_krish ASP.NET 1.0 and 1.1 Basics 2 April 4th, 2006 11:02 PM
Tree View mistry_bhavin ASP.NET 1.x and 2.0 Application Design 1 August 3rd, 2005 03:58 PM
tree view msrnivas .NET Web Services 0 February 23rd, 2004 07:04 AM
Tree View Natalie Pro VB 6 5 September 23rd, 2003 07:23 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.