Re-Usable Data Entry Forms

Warren

New member
Joined
Apr 16, 2008
Messages
4
Programming Experience
5-10
My application will have many forms for editing data and buttons for new, save, delete. What is the best way to use for adding, saving, deleting that I can create once and re-use many times.

Thanks
 
I didn't get any replys so I think I need to rephrase my question. I am developing a new database application which requires many forms with add, change, delete capability. I am developing the forms as user controls with a panel on the main form as the container.

Many of the user forms (user controls) require add, change, delete buttons.

What is the best method to create these buttons so that I can create them once and then re-use them many times. Should I build a template base form class with the buttons and then use visual inheritance?

Any advice is appreciated.

Thanks
 
Hi Warren,

There are a couple of ways of doing that .
1 .You can create a base user control with basic functionalities of deleting,adding etc. If you need any extra functionality which would change from form to form, you can create a separate user control which would inherit from the base user control. You can declare certain methods, properties as overridable in the base usercontrol which would be overriden in the derived usercontrols to deliver those extra functionalities.

2.The other way is you can create a Interface and implement the interface in your user controls.
 
Last edited:
Reusable Forms

Thanks for the response priyanks,

I will explore the option of creating a base user control that contains the properties and methods that I need to re-use.
 
Back
Top