How do I change the selected index/item of a treeview control?

I tried tv.selectedindex = 5 but it says its read only.
I also tried tv.Nodes[5].IsSelected = true; but that does not work either

thanks in advance