Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I need a header for all of my Data Entry Forms.

meaning, Panel containing SAVE/UPDATE, PRINT(Sometimes), CLOSE buttons
for every data entry places of my application. So that i don't need to create those buttons again and again and can write a class or a method for those buttons.

Thanks, in advance.
Posted
Comments
[no name] 10-Oct-12 7:31am    
Okay so do it. Since you did not ask a question, you must be seeking permission. You have my permission to create that user control.
Anaya Upadhyay 11-Oct-12 0:56am    
I did not ask for permission, i really seek help. :)

Hi there !
All you have to do is to create a form with these button and make an internal methods to handle these calls ,Then simply make any number of forms that inherts from that base form !

if this is what you are looking for then mark this thread as answer..
 
Share this answer
 
What you are describing is exactly what User Controls are for. You can create a user control that holds all the controls you wish to repeat. For buttons, each one should raise an event so that it can interact with its parent form. You just place this user control on each of the forms that need it and handle the events on the form as they need to be.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900