C# Windows Form inheritance
Hi coxianuk, Thank you for sharing the solution with us. It will help others who have similar issues. Have a nice day.Bob Wu [MSFT] MSDN Community Support | Feedback to us
View ArticleC# Windows Form inheritance
Thanks for all your help. It made me think a littlle more about the process of initialising the forms. On investigation I noticed that the InitializeComponent() call was missing from the WindowBase...
View ArticleC# Windows Form inheritance
Hi coxianuk, First, change the properties of an instance will not change another instance’s properties. The derived class will only get the properties and the default value of the base class. Second,...
View ArticleC# Windows Form inheritance
Hi coxianuk,I have moved this thread to Windows Forms forum for better support.Best regards,Min Zhu [MSFT] MSDN Community Support | Feedback to us
View ArticleC# Windows Form inheritance
Are you using designer? Did you recompiled the code?The correct way to tell the designer what property value is default is to use DefaultValueAttribute, but designer is smart, it knows its own creation...
View ArticleC# Windows Form inheritance
You inherit the code for the class, not the values of an instance of the class.
View ArticleC# Windows Form inheritance
I wish to use inheritance on form properties so I can have a very lowlevel form that has some common code (WindowBase). I then have the common application level settings applied to...
View ArticleC# Windows Form inheritance
Friend, I will not be. When you access Form options, it will be a different instance, not the same base class. Pls share your requirment, so that we can share our thoughts :) -- Thanks Ajith R Nair
View ArticleC# Windows Form inheritance
I have a form, WindowBase, that inherits from Form. I have ApplicationWindowBase that inherits from WindowBase. I then have FormOptions that inherits from ApplicationWindowBase.I would have expected...
View Article