I have TreeView object and I need when a node of treeview is selected, form is shown in definite location (properties of the node), and when another node is selected, the form changes. When no node is selected, the form disappear. Form contains only ListView object. I need something like properties window in visual studio.
The problem I have now:
Form appear randomly, in wrong location, I need it to be shown in definite location in another form.
After each mouse down event, appear a new form, but I need there will be only one form (or old disappear – new appear)
When no nodes are selected, the form doesn’t disappear.
How can I solve this problems, or maybe there is a better solution ?
What I think you are seeking is the PropertyGrid control.
http://msdn.microsoft.com/en-us/library/aa302326.aspx
It is a very deep and complex control, but can give amazing result.