Friday, 15 February 2013

winforms - C# OOP concepts: is inheritance from Control class the right way? -



winforms - C# OOP concepts: is inheritance from Control class the right way? -

my question right way of code writing. utilize c# winforms. created instance of command class (anyone available in designer), illustration panel class, set properties of object, subscribed events, wrote event handlers, etc. next way: create custompanel class inherited panel , white above code (setting properties, subscribing events, event handlers) in custompanel class. so, when want utilize panel setting , functionality, can drag , drop custompanel object designer. right way or interitance command classes isn't idea? maybe should create own class (not inherited) contains panel settings , bind panel?

use decorators when possible

using visual inheritance windows form designer very buggy, lot of times designer doesn't work , on top of never works when controls in 64 bit assembly http://support.microsoft.com/kb/967050

c# winforms oop inheritance

No comments:

Post a Comment