PC Review


Reply
Thread Tools Rate Thread

AfterCheck event for TreeView control

 
 
=?Utf-8?B?VEo=?=
Guest
Posts: n/a
 
      30th Dec 2004
Hi,

I registered event handler to catch the AfterCheck event...

myTreeView.AfterCheck += new TreeViewEventHandler(myTreeView_....);

It works fine, however, if I set the checkbox as true or false
programatically(I mean..in the code, somethinglike node.Checked = true...),
aftercheck event
wasn't fired. Of course, if I checked the checkbox by mouse or keyboard, the
event was fired. However, again, programatically set checkbox didn't invoke
the aftercheck event.

Am I missing something?
Any suggesion would be appreciated.

Thanks.

................................................TJ




 
Reply With Quote
 
 
 
 
Ron
Guest
Posts: n/a
 
      31st Dec 2004
Hi TJ,
Just call the AfterCheck event handler after you change the status of the
check.
Regards,
Ron.

"TJ" <(E-Mail Removed)> wrote in message
news:A1FA5DBD-A6B1-4DB7-8A17-(E-Mail Removed)...
> Hi,
>
> I registered event handler to catch the AfterCheck event...
>
> myTreeView.AfterCheck += new TreeViewEventHandler(myTreeView_....);
>
> It works fine, however, if I set the checkbox as true or false
> programatically(I mean..in the code, somethinglike node.Checked =

true...),
> aftercheck event
> wasn't fired. Of course, if I checked the checkbox by mouse or keyboard,

the
> event was fired. However, again, programatically set checkbox didn't

invoke
> the aftercheck event.
>
> Am I missing something?
> Any suggesion would be appreciated.
>
> Thanks.
>
> ...............................................TJ
>
>
>
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Treeview Aftercheck pbaugh@recoilsoft.com Microsoft C# .NET 4 13th Nov 2007 05:40 PM
Treeview Control on click event Ed Dror Microsoft ASP .NET 2 26th Jun 2007 04:13 PM
TreeNode Aftercheck event scottwed Microsoft C# .NET 0 29th Dec 2006 09:02 PM
Bug in NET v2.0 AfterCheck event =?Utf-8?B?TWlrZSBC?= Microsoft C# .NET 1 26th Jan 2006 08:29 PM
AfterCheck event for TreeView control =?Utf-8?B?VEo=?= Microsoft Dot NET Framework Forms 1 3rd Jan 2005 02:58 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:45 AM.