Need help for Treeview & Listview - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Need help for Treeview & Listview

sonalsonal Posts: 3Member
Dear friends,

I need help for node_click event of treeview.
What i want to do is on node click event of treeview it should detect whethere it is rightclick or leftclick? As in windows explorer we have two different events like on left click it populate the list view i e file list & on right click it shows a popup.
i wana do the same. can u please suggest me how to go with it?
Please give reply asap.
thanks in advance.



Comments

  • JomacJomac Posts: 231Member
    : Dear friends,
    :
    : I need help for node_click event of treeview.
    : What i want to do is on node click event of treeview it should detect whethere it is rightclick or leftclick? As in windows explorer we have two different events like on left click it populate the list view i e file list & on right click it shows a popup.
    : i wana do the same. can u please suggest me how to go with it?
    : Please give reply asap.
    : thanks in advance.
    :
    :
    :
    :

    Create a 'Public' Var of type 'MouseButtonConstants'

    On the TreeViews 'MouseDown' event set that Var to the value of 'Button', that way on the 'NodeClick' event you can check if your Public Var = 'vbLeftButton' or 'vbRightButton' or even 'vbMiddleButton'

    If still having trouble, reply and I will post the code for you.

    Regards,

    ______
    [size=2][b][blue]J[/blue]omac.[/b][/size]

Sign In or Register to comment.