I want to create a context menu using C# that will display next to the node similar to what happens here in Visual Studio:
You should set up treeView1.ContextMenu instead of the approach you're taking.
treeView1.ContextMenu