Reusable Windwows Design in C#

  • Thread starter Thread starter Sujay Ghosh
  • Start date Start date
S

Sujay Ghosh

Hello.

Environment : VS 2005/ VC# / .NET 2.0

By default Windows Form provides a window. One can programatically change
the look and feel of the windows .

But I want to create a reusable Window , so the user does not need to
program the window .

Approach 1

Create a wizard which shall create the windows with our specified properties
.. But for that we need to generate our own code for all the Windows events .

Any one having other design approaches for this .

Thanks in advance .

Sujay
 
Are you looking for a kind of stylesheets solution for Windows Forms?

Depending upon what your trying to do you could look at writing your own
code generator which isn't that difficult or maybe just creating an abstract
base form that your team uses instead of the standard Form class.

Thanks,

Doug
 
Create a library with your window likely a subclass of the Windows Form.
From the create project path this is a Windows Control Library.

After you generate a program you can change the parent class of the windows
form in the designer file.

With VS2005 you can create your own templates and export them so they will
be visible to others when they wish to add things to a project is another
choice. Take a look at the File|Export menu from any open project.
 
Back
Top