How to set focus on a treeview node when i right click the mouse?

The code should like this but never work.


-------------------------------
if e.Button = Windows.Forms.MouseButtons.Right then
focus(treeview1.selectednode)
end if
-------------------------------

thanks in advence.