Answer the question
In order to leave comments, you need to log in
Is it possible to implement controls on a form by analogy with classes and interfaces?
Is there any pattern for implementing a form blank (skeleton)? As a class inheriting from an interface.
Example:
I want to have a form template and define 3 controls on it: Surname, Name, Age.
Then, from this form, create several inherited forms and in these inherited forms, in addition to these 3 standard controls, have their own specific ones.
Answer the question
In order to leave comments, you need to log in
class MyBaseForm : Form {
// и тут ваш перечень контроллов и их свойства
}
class MyChildForm1 : MyBaseForm {
// наследник 1
}
class MyChildForm2 : MyBaseForm {
// наследник 2
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question