Forums - C# Corner

Forum guidelines
Ilkin Turk

Ilkin Turk

  • 662
  • 101
  • 61.5k

Design Patterns - winforms controls

Dec 17 2012 3:22 AM
Hello

I wanted using factory pattern create Winform controls and add them to forms dynamically.Their methods too.
ITools
{
Button getbutton();
TextBox gettextbox(); 

Class myClass:ITools
{
Button getbutton()
{
Button btn = new Button();
}
}
And then factories.
So, I want to make my code more flexible.Free.What do you think this will help me?How flexible?
Thanks in advance

C# Corner Chandigarh Developer Conference

SPONSORED BY

Custom Software Development
MCN is your source for developing solutions involving websites, mobile apps, cloud-computing, databases, BI, back-end services and processes and client-server applications.