TreeView AfterSelect not fired

Tech-Archive recommends: Fix windows errors by optimizing your registry



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: Flashing TreeView Control on Web Page
    ... The Treeview is a Winform control. ... Because the control resides in the GAC, ... have wrapped it in a user control. ...
    (microsoft.public.dotnet.framework.windowsforms.controls)
  • Re: DataGrid inside a TreeView
    ... > Hello, I wanna create a control like a TreeView, but with some nodes ... > with a grid. ... I think about create a user control, ... > maybe there's an easier way, like using the TreeView component itself. ...
    (microsoft.public.dotnet.languages.csharp)
  • Treeview and custom user controls problem in asp.net
    ... other is login control. ... I use a webform, which has a treeview menu one side, ... to load one of the user control when user click each one of the treeview ... Control, but when I click on the submit button, the login control will ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: ListView Multicolumn
    ... I would certainly look at that treeview. ... but certainly a control is than the worst solution. ... Only one user control may be "active" within a given ... A listview is fore non database work. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: May I introduce myself to cobol?...
    ... Treeview styles, ... Enables check boxes for items in a tree-view control. ... a state image list containing two images. ... Process the NM_CUSTOMDRAW message using the same logic as shown my listview ...
    (comp.lang.cobol)