visual-inheritance

What's the state of play with “Visual Inheritance”

对着背影说爱祢 提交于 2019-11-30 20:03:51
We have an application that has to be flexible in how it displays it's main form to the user - depending on the user, the form should be slightly different, maybe an extra button here or there, or some other nuance. In order to stop writing code to explicitly remove or add controls etc, I turned to visual inheritance to solve the problem - in what I thought was a neat, clean and logical OO style - turns out that half the time inherited forms have a hard time rendering themeselves in VS for no good reason etc - and I get the feeling that developers and to some extent Microsoft have shunned the

What's the state of play with “Visual Inheritance”

有些话、适合烂在心里 提交于 2019-11-30 03:31:02
问题 We have an application that has to be flexible in how it displays it's main form to the user - depending on the user, the form should be slightly different, maybe an extra button here or there, or some other nuance. In order to stop writing code to explicitly remove or add controls etc, I turned to visual inheritance to solve the problem - in what I thought was a neat, clean and logical OO style - turns out that half the time inherited forms have a hard time rendering themeselves in VS for no

Controls on inherited form are locked, can it be undone?

女生的网名这么多〃 提交于 2019-11-28 13:58:32
Setup: I have created a Form that I wish to have serve as the base from which I will inherit other forms. This base form serves as a "template" of sorts, but it also provides a good deal of functionality related to the structure, as well as the interrelation of all of the controls provided. A primer for the images that follow... The top info-colored bar is a custom control inherited from ToolStrip . The bottom strip is another custom, again inherited from ToolStrip . The left white block is a TreeView and the right block is a TabControl (having deleted all TabPages from it...I intend for these

.NET inherited (WinForms) Form - VS designer issue

馋奶兔 提交于 2019-11-27 07:40:21
问题 I have several forms in a C# application. I use Visual Studio 2010 Beta, but .NET 3.5 and C# 3. I have a base form, called FilteredQueryViewForm in the Shd namespace and I want some other forms to inherit it (because they will basically do the same stuff, but with some additions). I changed things from private to protected in the FilteredQueryViewForm class, so they're accessible from the derived forms. After this I've created a derived form and set the base class to FilteredQueryViewForm.