TreeView AfterSelect not fired

M

Marius Horak

VS2003, C#.
I have a user control that has a TreeView.
Depending on user role (rights) this TreeView can be either visible or
invisible.
After 3 hours of trying to find out why this control does not work as
intended I discovered that when the TreeView is invisible changing
SelectedNode does not fire AfterSelect event.

Now some of you will try to tell me that this is quite logical -
'Control nor visible so why should bother with its events'. For those
people I have a news - TextBox's TextChanged will fire always.

So much for M$ logic.
This is shocking and this is crap and my blood is boiling.
Give me a gun!!!

MH

PS. This post is for information only. Don't try to tell me that I have
to find a workaround.
 
V

VJ

So why does a listbox's selectedIndex change fire, when selecting a selected
Item?

Its just a normal day at the office :)

VJ
 

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

Top