context menu problem vb .net

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • EvilProject
    New Member
    • Nov 2007
    • 16

    context menu problem vb .net

    Hi im writing a class of a context menu where each menu item is linked to a Tree Node.
    I have a click event (that belongs to the context menu class ,not the menu item class) that it's event arguments contains a reference to the tree node linked to the menu item that was clicked.
    in the case that no menu item was selected, i want to fire this event with a null refrenced tree node.i could have done so if the collapse event of the context menu occured before the click event of a menu item,i would have simply check in the collapse event if a menu item was clicked and if not i would have fired a click event with a null referenced tree node. but the collapse event is fired before the click event :X .
    is there a way to change the order they are fired in ?
    or is there an alternative solution to my problem ?

    thanks in advance. sorry for my poor english :X
Working...