Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / March 2007

Tip: Looking for answers? Try searching our database.

TreeView AfterSelect not fired

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Marius Horak - 13 Mar 2007 15:59 GMT
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.
VJ - 13 Mar 2007 16:14 GMT
So why does a listbox's selectedIndex change fire, when selecting a selected
Item?

Its just a normal day at the office :-)

VJ

> VS2003, C#.
> I have a user control that has a TreeView.
[quoted text clipped - 16 lines]
> PS. This post is for information only. Don't try to tell me that I have
> to find a workaround.
Marius Horak - 14 Mar 2007 15:40 GMT
> So why does a listbox's selectedIndex change fire, when selecting a
> selected Item?

Oversight by M$?

MH

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.