O
Olivier Deborne
Hello,
I have two classes A & B
public class A : B
{
private string lastname;
public string LastName
{
get{};
}
}
public class B
{
private string firstname;
public string FirstName
{
get{};
}
}
Class A inherits from B. When I try to databind the field FirstName, an
error occurs
MyTextBox.DataBindings.Add("Text", A, "FirstName"). It seems the databinding
does not see the property "FirstName", what I'm doing wrong?
Thanks for your help.
BRgds,
Olivier.
I have two classes A & B
public class A : B
{
private string lastname;
public string LastName
{
get{};
}
}
public class B
{
private string firstname;
public string FirstName
{
get{};
}
}
Class A inherits from B. When I try to databind the field FirstName, an
error occurs
MyTextBox.DataBindings.Add("Text", A, "FirstName"). It seems the databinding
does not see the property "FirstName", what I'm doing wrong?
Thanks for your help.
BRgds,
Olivier.