Question Finding Out which Container it is

yigit_sertac

Member
Joined
Apr 7, 2012
Messages
5
Programming Experience
5-10
How to find out controls(such as richtextbox) containers? I am using split container. Each panels have richtextboxes. But which richtextbox is in which container? Can you help me with that?
 
The controls Parent property will return a reference to the container object, which is one of the SplitterPanels. If you need to know if that is Panel1 or Panel2 then you need to compare with SplitContainer.Panel1/Panel2 properties to see if one or the other is the same object.
 
"Tag'ging" controls is a viable solution that is often overlooked.
 
Back
Top