Click here to Skip to main content
13,051,502 members (55,665 online)
Rate this:
Please Sign up or sign in to vote.
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 10-Oct-12 1:22am
Wes Aday 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. :)
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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..
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

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.

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 11 Oct 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100