Forum guidelines
AuthorQuestion
Design Patterns - winforms controls
Posted By Ilkin Turk on 17 Dec 2012
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

Spire.Doc

SPONSORED BY

Spire.Doc - Free .NET Word API
Use Spire.Doc to create, read, write, print, and convert word documents to OpenXML, RTF, TXT, XPS, EPUB, EMF, HTML, Image and PDF.