Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#3.0 VB.NET Forms
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 2:22am
Comments
Wes Aday at 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 at 11-Oct-12 0:56am
   
I did not ask for permission, i really seek help. :)
Rate this: bad
good
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..
  Permalink  
Rate this: bad
good
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.
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 365
1 Sergey Alexandrovich Kryukov 329
2 BillWoodruff 210
3 Afzaal Ahmad Zeeshan 204
4 CPallini 185
0 OriginalGriff 5,515
1 DamithSL 4,451
2 Maciej Los 3,902
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,175


Advertise | Privacy | Mobile
Web01 | 2.8.141216.1 | Last Updated 11 Oct 2012
Copyright © CodeProject, 1999-2014
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