I have built a custom usercontrol that displays treeview differently. The first level of the treeview is displayed as a button and the lower levels are displayed as seperate treeviews.
Example: Tree A B C
sublevel A : 1 2 3
sublevel B : 1
sublevel 1 : 1a 1b
so if I click on the button with label A I get to see a tree:
if I click on b =>
All of that works perfectly. All the labels and treeviews are generated during the code executing depending on the data that has been given to the control. I've created my event
mainLabel.Tv.NodeMouseDoubleClick += new TreeNodeMouseClickEventHandler(Tv_NodeMouseDoubleClick);
void Tv_NodeMouseDoubleClick(object sender, TreeNodeMouseClickEventArgs e)
clickedNodePath = e.Node.FullPath;
so that when a node is doubleclicked an event is raised so I can get the full path. The only problem is that
RaiseMouseEvent cannot be used. And the whole idea is that my control which contains my extendedlabels fires an event that can be captured by the form that contains the control.
But I don't manage to raise another event. I prefer not to write my own eventhandler since I already have anotherone in my framework that capturs data read events etcetera.