Click here to Skip to main content
15,886,199 members
Home / Discussions / C#
   

C#

 
AnswerRe: Hi all Pin
Syed Shahid Hussain29-Jul-08 21:44
Syed Shahid Hussain29-Jul-08 21:44 
GeneralRe: Hi all Pin
tasumisra29-Jul-08 22:44
tasumisra29-Jul-08 22:44 
AnswerRe: Hi all Pin
Ravi Kumar Tyagi29-Jul-08 21:46
Ravi Kumar Tyagi29-Jul-08 21:46 
GeneralRe: Hi all Pin
tasumisra29-Jul-08 22:46
tasumisra29-Jul-08 22:46 
AnswerRe: Hi all Pin
Tuwing.Sabado29-Jul-08 23:27
Tuwing.Sabado29-Jul-08 23:27 
GeneralRe: Hi all Pin
tasumisra29-Jul-08 23:35
tasumisra29-Jul-08 23:35 
GeneralRe: Hi all Pin
tasumisra30-Jul-08 0:08
tasumisra30-Jul-08 0:08 
GeneralRe: Hi all Pin
Tuwing.Sabado30-Jul-08 3:20
Tuwing.Sabado30-Jul-08 3:20 
Hi,

What is the reason why you want to place those panels in one form and not creating 3 different forms? Is it you want to reuse the method, function and properties of form you've created and you don't want to repeat this codes in other form plus they have the same look and feel with some slight differences in Pane1, Panel 2 and Panel3. If your answer is YES you should go to inherited form.

NOTE: Methods and Properties of Parent Form are visible to inherited Form (Only Public and Protected access modifiers).


Parent Form

.......................................................................
.                                                                     .
.                                                                     .
.       |--------------------------|                                  .
.       | Static Design          |                                  .
.       |--------------------------|                                  
.                                                                     .
.                                                                     .
.                                                                     .
.       |--------------------------|                                  .
.       | Area for                   |                                  .
.       | Other Panel             |                                  .
.       |--------------------------|                                  .

.                                                                     .
.                                                                     .
.                                                                     .
.                                                                     .
.......................................................................




Inherited Form
Locked Static Design means you can only edited this on Parent Form.

.......................................................................
.                                                                     .
.                                                                     .
.       |--------------------------|                                  .
.       | Locked - Static Design       |                                  .
.       |--------------------------|                                  
.                                                                     .
.                                                                     .
.                                                                     .
.       |--------------------------|                                  .
.       | Area for                   |                                  .
.       | Other Panel             |                                  .
.       |--------------------------|                                  .

.                                                                     .
.                                                                     .
.                                                                     .
.                                                                     .
.......................................................................



The result of this approach is you have 4 Forms but you never repeated any codes that already created in Parent Form and you have more manageable codes.

To create inherited form you should go to usual process of adding new forms in the project but now you will select the object Inherited form then follow the wizard Wink | ;-)
GeneralRe: Hi all Pin
Tuwing.Sabado30-Jul-08 3:28
Tuwing.Sabado30-Jul-08 3:28 
QuestionControl Creation Pin
Syed Shahid Hussain29-Jul-08 20:55
Syed Shahid Hussain29-Jul-08 20:55 
AnswerRe: Control Creation Pin
Christian Graus29-Jul-08 21:03
protectorChristian Graus29-Jul-08 21:03 
GeneralRe: Control Creation Pin
Syed Shahid Hussain29-Jul-08 21:05
Syed Shahid Hussain29-Jul-08 21:05 
GeneralRe: Control Creation Pin
netJP12L30-Jul-08 6:30
netJP12L30-Jul-08 6:30 
Questionc# string split functions Pin
AndieDu29-Jul-08 20:51
AndieDu29-Jul-08 20:51 
AnswerRe: c# string split functions Pin
Christian Graus29-Jul-08 21:04
protectorChristian Graus29-Jul-08 21:04 
GeneralRe: c# string split functions Pin
AndieDu29-Jul-08 21:09
AndieDu29-Jul-08 21:09 
GeneralRe: c# string split functions Pin
PIEBALDconsult30-Jul-08 4:55
mvePIEBALDconsult30-Jul-08 4:55 
AnswerRe: c# string split functions Pin
#realJSOP29-Jul-08 23:43
mve#realJSOP29-Jul-08 23:43 
AnswerRe: c# string split functions Pin
Ravi Kumar Tyagi5-Sep-08 18:34
Ravi Kumar Tyagi5-Sep-08 18:34 
QuestionDisable the button shown in the PrintPreviewControl Pin
Darmi29-Jul-08 20:02
Darmi29-Jul-08 20:02 
QuestionConvert byte array to file, then open it ot its default application Pin
-spy-29-Jul-08 17:51
-spy-29-Jul-08 17:51 
AnswerRe: Convert byte array to file, then open it ot its default application Pin
Christian Graus29-Jul-08 18:13
protectorChristian Graus29-Jul-08 18:13 
AnswerRe: Convert byte array to file, then open it ot its default application Pin
Christian Graus29-Jul-08 20:03
protectorChristian Graus29-Jul-08 20:03 
AnswerRe: Convert byte array to file, then open it ot its default application Pin
PIEBALDconsult30-Jul-08 4:58
mvePIEBALDconsult30-Jul-08 4:58 
Questionc# Getting Data From Excel Pin
Matthew Hastings29-Jul-08 14:01
Matthew Hastings29-Jul-08 14:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.