Print Page | Close Window

(SOLVED) Nodeclick event in Treeview control

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=13397
Printed Date: 29 March 2024 at 8:08am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: (SOLVED) Nodeclick event in Treeview control
Posted By: pepsipela
Subject: (SOLVED) Nodeclick event in Treeview control
Date Posted: 12 February 2009 at 10:54am
Hi,

I am working with VB6 and Codejock controls 13.0.0 under Windows XP,

I need to implement contextual menus into nodes of Treeview control, but the right mouse button doesn't fire nodeclick event, and the selected node not change. Any suggestion ?

While i have pressed the mouse rigth button, the focus change to clicked node, but when i left the button the focus return to previous node.

Thanks,  



Replies:
Posted By: Oleg
Date Posted: 13 February 2009 at 2:42am
Hi,
So add ContextMenu in MouseDown/Up event and use treeView1.HitTest method to find item under cursor.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: pepsipela
Date Posted: 24 February 2009 at 4:06am
Thanks for your help, this solution is working fine,

Regards



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net