Reusable Windwows Design in C#

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
 
D

Doug Holland

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
 
N

newscorrespondent

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top