I am using split containers in my application. One parent split container. There are three split containers in panel2 of parent split container.
Now when I click on one of the panel of split container embedded in panel2 of parent container, how to find that which containers which panel is clicked?
Thanks in advance!
You can try subscribing all of the panel’s to use the same click event. The sender would be the SplitterPanel class, which will have a Parent property (hidden from IDE but it’s there) that will be the SplitContainer:
For demonstration purposes, I entered a 1 or a 2 in the tag property of each panel since the sub-panels used in the SplitContainer do not use the Name proprety.