View Single Post
  #7 (permalink)  
Old 02-27-2008, 10:09 PM
specci48's Avatar
specci48 specci48 is offline
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Germany
Posts: 669
Default

One small addition...

Since some controls behave different on the desktop and on the device (and for the treeview there are A LOT of differences ) I testet your code on the device.

The result:
On the device the context menu is called with a "tap and hold" action. If I run your original code, calling the context menu DOES select the new node since the device does not know, how long your stylus will be held on the display. The AfterSelect is fired and even overlaps the ContextMenu_Click event so the Sub ContextMenu_Click is never executed.
A possible solution for a (device) working code could be: Put all your needed code into the ContextMenu_Click Sub and delete the AfterSelect event...


specci48
Reply With Quote