T
Tim Mackey
hi,
i have a class 'WebManTreeNode' that inherits from Windows forms TreeNode. i
have added a 'TextChanged' event to it, because i need to listen out for it,
but i am unable to intercept the TreeNode.Text property to raise my event
whenever the property changes.
i have tried overriding the Text property but compiler complains.
an outline of the WebManTreeNode class is below. if anyone has ideas that
would be great.
thanks
tim mackey.
public class WebManTreeNode : System.Windows.Forms.TreeNode
{
public event EventHandler TextChanged;
public WebManTreeNode(........)
{
...
this.TextChanged += new EventHandler(this.OnTextChanged);
}
public void OnTextChanged(object sender, EventArgs e)
{
// run my code...
}
i have a class 'WebManTreeNode' that inherits from Windows forms TreeNode. i
have added a 'TextChanged' event to it, because i need to listen out for it,
but i am unable to intercept the TreeNode.Text property to raise my event
whenever the property changes.
i have tried overriding the Text property but compiler complains.
an outline of the WebManTreeNode class is below. if anyone has ideas that
would be great.
thanks
tim mackey.
public class WebManTreeNode : System.Windows.Forms.TreeNode
{
public event EventHandler TextChanged;
public WebManTreeNode(........)
{
...
this.TextChanged += new EventHandler(this.OnTextChanged);
}
public void OnTextChanged(object sender, EventArgs e)
{
// run my code...
}