I ran into a odd issue with my treeview when deploying, I had to add the following lines when loading the application.
I put this code in main() startup method:
System.Windows.Forms.Application.EnableVisualStyles();
System.Windows.Forms.Application.DoEvents();