A mechanism of Windows Forms that lets forms inherit controls and appearance.
Questions tagged [visual-inheritance]
43 questions
0
votes
1 answer
Problems with visual inheritance, Visual Studio 2008 C#
I have this problem with Visual Studio 2008 C#. There's a base form and a number of Windows forms that inherit from it. (Yes, I think I've compiled the base form before I tried to inherit from it.)
The derived forms compile smoothly, without…

user727395
- 21
- 3
0
votes
1 answer
reusing components in inherited Frame while maintaining GUI builder usage
what is the best way to have JFrames, JDialogs, etc that derive from a common parent but differ some, to be able to have the common parts update automatically when the parent does, but also have new components which are still easily modified in a…

brian_d
- 11,190
- 5
- 47
- 72
0
votes
1 answer
C# Child Form Inheriting a Control from Parent Form
The way my application is organized is I have a base form and multiple child forms that inherit from it. I also have a button defined as a UI control. I want to add the UI control to the base form so all the child forms can also have that control.…

Eddy221
- 55
- 1
- 2
- 7
0
votes
0 answers
How to auto update many descendants forms after ancerstor form had an control deleted?
Suppose a TAncestorForm with an extra button (or any other control). If I remove the button, whenever I open a descendant of TAncestorForm the Delphi IDE shows a message "Ancestor component not found..." and let me choose:
Remove the…

EMBarbosa
- 1,473
- 1
- 22
- 76
0
votes
1 answer
cannot add items to ContextMenuStrip on inherited winform
My setup is very simple.
I have a form called FormBaseList, on that form there is a DataGridView and a ContextMenuStrip. The ContextMenuStrip is coupled to the DataGridView and has 2 menuitems.
Now I add a new form to my project, using add Windows…

GuidoG
- 11,359
- 6
- 44
- 79
0
votes
0 answers
WinForms MDI inherid form has different propertie values in parent?
I am doing some maintenance on a legacy winforms application.
The project uses form inheritance which makes my job much easier, but there is a strange problem. The setup is as follows:
FormBase : Form
FormBaseList : FormBase
FormClientList :…

GuidoG
- 11,359
- 6
- 44
- 79
0
votes
0 answers
Use base BindingSource as derived Form datasource
I have a base Form that has a public BindingSource property, named "BaseSource". Its DataSource property is set to a business object type.
I thought that if I created a derived form from it, in the designer I would have access to "BaseSource" and…

Crono
- 10,211
- 6
- 43
- 75
0
votes
3 answers
ASP: Extend control (ASCX) and access base markup file from subclass code
I'm building form validation controls for our C# ASP application. The bulk of the work is handled by a BaseValidator control (subclassing System.Web.UI.UserControl), which also has the markup for the validation output. This is then extended by…

Pathoschild
- 4,636
- 2
- 23
- 25
0
votes
1 answer
Applying a common layout to ascx controls in ASP.NET MVC
What would be the best way to implement visual inheritance for partial ascx views in MVC?
I have the main Site.Master file which provides a header, footer, sidebar and main content area. Then i have an Info.Master which uses Site.Master as it's…

krisg
- 796
- 1
- 9
- 24
0
votes
1 answer
Sharing code between derived forms
I have implemented visual inheritance in a project of mine. There are two derived forms from a base one. I also have two regular derived classes from one base class. Each derived form deals with one of the derived classes instatiating an object of…
user2797403
0
votes
1 answer
Call method on derived form from the base form
I've been trying to play with Visual Inheritance so that I can reuse a set of buttons in multiple forms.
Basically what I'm trying to achieve is, I want the buttons to have same visual behavior across the different forms, however, they should…

Lee Andrew
- 798
- 7
- 28
0
votes
3 answers
Visual inheritance in ASP.NET without master pages
I have a certain page and depending on an administrator role a lot of extra validation controls have to be inserted. However I don't want to take the risk that a validator gets turned on for other users.
What I was thinking is to use some form of…

Nyla Pareska
- 1,377
- 6
- 22
- 37
0
votes
1 answer
Issue with inheriting custom control
I have an user control in our library that I need to inherit and make some update to it. The issue that I'm having right now is that I cannot instantiate the new user control directly. I have to call a method in the library that will create and pass…

Eric
- 15
- 5