Re: TreeView AfterSelect not fired



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

Its just a normal day at the office :-)

VJ

"Marius Horak" <nobody@xxxxxx> wrote in message
news:ungxyAYZHHA.2316@xxxxxxxxxxxxxxxxxxxxxxx
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.


.



Relevant Pages

  • RE: RadioButtonList, Web User Control, Firefox, IE
    ... I have a radiobuttonlist control that is added on a custom Web User Control. ... This control has a property that exposes the SelectedIndex property of the ... Protected Sub Button1_Click(ByVal sender As Object, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Dynamically loaded user control events not firing on first click
    ... When a user control is loaded into a PlaceHolder control more than once, ... events do not fire on the first click of a control on the dynamically loaded ...
    (microsoft.public.dotnet.framework.aspnet)
  • VS 2K5 Test framework
    ... I'm testing all the properties and methods in a user control in 2K5. ... Under the 2K5 test framework some controls events do not fire. ...
    (microsoft.public.vsnet.general)
  • Re: User Control PageLoad even not firing
    ... PJ> how ddep but there is a control inside a control inside a ... ... PJ> reference to the problematic user control nested inside of it but it ... PJ> postback the pageload of the problematic user control does not fire. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: UserControl Events
    ... control implement IMessageFilter, and then call the static AddMessageFilter ... what you want to do is take the windows ... then you can fire your event. ... > now, every time wheb user of this "User Control" double clicks anywhere on> it, ia want "Double Click" event to be fired... ...
    (microsoft.public.dotnet.languages.csharp)