شرح المشكله
اريد ان اضيف خاصيتان جديدتان للصنف TabPage الذي يكون اصلا ضمن الصنف TabControl
علمان بان كل الصنفان هما اصلا مورثان من system.windows.forms
عندما اضيف هذان الخصياتان للصنف المورث من الــ tabcontrol كما في الكود التالي فانه تتم العمليه بنجاح
Public Class TabControl
Inherits System.Windows.Forms.TabControl
Public StrEn As String
Public StrAr As String
Property lungEn() As String
Get
Return StrAr
End Get
Set(ByVal value As String)
StrAr = value
End Set
End Property
Property lungAr() As String
Get
Return StrEn
End Get
Set(ByVal value As String)
StrEn = value
End Set
End Property
End Classلكن عندما اضيف ما هذا االخصياتان للصنف المورث من الـــTabpage لاينتج اي شي كما في الكود التالي
السؤال هو كيف يمكننا ان اضيف خصائص الى خصائص الصنف الـــTabpage الذي هو ضمن الصنف tabcontral
Public Class Tabpage
Inherits System.Windows.Forms.Tabpage
Public StrEn As String
Public StrAr As String
Property lungEn() As String
Get
Return StrAr
End Get
Set(ByVal value As String)
StrAr = value
End Set
End Property
Property lungAr() As String
Get
Return StrEn
End Get
Set(ByVal value As String)
StrEn = value
End Set
End Property
End Class