Quote:
Originally Posted by specci48
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
|
Thanks, 
I can confirm that I have now got this working by removing the afterselect event and using the context menu.
This does mean that I must now tap and hold the node then select an action but at least it performs the action on the correct node.
I've requested a Click Event for the treeview control which will resolve this problem, see here http://www.basic4ppc.com/forum/showt...0130#post10130.
Regards,
RandomCoder
__________________
Desktop: Pentium D 920 (2.8GHz, 4MB L2 Cache, 800MHz FSB), 1024MB, 256MB Radeon X600, 250GB HD.
Device : Axim X51v XScale 624MHz, 3.7" VGA, 64MB SDRAM, 256MB Flash ROM + 1Gb SD.
"Defeat never comes to any man until he admits it."Josephus Daniels
|