One possibility would be to let your user control
have a reference to the tab page that contains it. Upon construction or
loading of the object that contains the tab control, loop through the tab page
collection and invoke a method or property that embeds the reference.
Then, when the appropriate value is changed within the user control, it can
directly access the tab page's Text property.
__________
// Assuming that the MyDefectUserControl instance
is the first or only control in each tab page. (C#)
foreach(
XtraTabPage tabPage in tabControl1.TabPages )
((MyDefectUserControl) tabPage.Controls[ 0 ]).SetTabPage( tabPage
);
__________
If tab pages are dynamically created and added
to the tab control, then each instance of the user control would also be
dynamically created and added to each tab page. In this case, the
constructor of the user control could receive a reference to the just
constructed tab page.
If, instead, you want the tab page to receive
an event raised by its user control, consider subclassing the XtraTabPage
class.