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.
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.