Hi,
I have some VB windows forms and user controls which they inherit from some base classes like BaseUserControl and BaseForm, every behavior that I want them to have I'll just add it into the Base classes, Here is a problem, one project inside my solution is written in C# and the forms and user controls of this project they also inherit from those VB Base classes, but the functionalities that I add to the base classes will not be added to the C# classes,
It's my BaseUserControl,
Public Class BaseUserControl
Inherits System.Windows.Forms.UserControl
Protected Overrides Sub InitLayout()
MyBase.InitLayout()
If (Not handlerAdded) Then tryaddinghandler()
TakeMenuEntranceDate()
End Sub
End Class
It's one of my user controls,
Public Class AveHesab1
Inherits Acc.WinUI.Common.BaseUserControl
End Class
So far everything goes well and there is no problem.
Here is the problem,
public class frmMoshakhasatPersonel : Acc.WinUI.Common.BaseUserControl
End Class
The functionalities that I add into the BaseUserControl are added into the all VB user controls that inherit from it, but none of the C# user controls Get the behavior inserted into BaseUserControl.
Any help and idea to solve it is welcome,
Thanks,
What I have tried:
I'm still working on it but yet haven't found a solution.