A
Andrew Baker
I want to show the parent name of a control in an addin I am writing.
However, when I use the following :
string parentName = thisControl.Parent.Name // thisControl is of type
Control
it is returning the name of the base type. Below is the form class
declaration:
public class frmUserEditor : VBUsers.Windows.Forms.EditorFormBase
{
....
}
ie. It returns the name of EditorFormBase rather than the name of
frmUserEditor.
Does anyone know why this is happening and how to get the name of the
most derived container of the control?
tia
andrew
However, when I use the following :
string parentName = thisControl.Parent.Name // thisControl is of type
Control
it is returning the name of the base type. Below is the form class
declaration:
public class frmUserEditor : VBUsers.Windows.Forms.EditorFormBase
{
....
}
ie. It returns the name of EditorFormBase rather than the name of
frmUserEditor.
Does anyone know why this is happening and how to get the name of the
most derived container of the control?
tia
andrew