Welcome to the new platform of Programmers Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use it's exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
I very new in C# and i started building an app for my company.
Overall it haves a lot of functions one of them it showing treeview populated from a database. Im populating the tree at every mouseclick on the treeNode. The nodes are references in DB to some physical files on a fileserver. The problem comes at reverse, building the tree based on the files.
At reverse i need to build the tree based on the query result.
It seems that it should be like this: Get the root node expand > get and add child's expand > from the child's select the one i need expand > add child's > from here select the one that i need .... and so on . I dont know how to do this from code without mouse events.