How to make one module or master page in C# windows forms application not in asp.net
I am working on C# application, in which i make 4 forms, subject, student, chapter, subchapter forms. now i want to add all these 4 forms into "one module or master " like studentmaster. so when i go on studentmaster all these forms are shown in sequance. how to make these master or module in C# application.
Devesh OmarPosted Jul 2, 2014, 1:52 AM
Sam HobbsPosted Apr 9, 2012, 10:57 AM
MuthuMari MPosted Apr 9, 2012, 1:45 AM
pls refer this url
http://www.homeandlearn.co.uk/csharp/csharp_s4p1.html
Ex wt you mentioned in the above
namespace WindowsFormsApplication1
{
partial class Form1
{
///
/// Required designer variable.
///
private System.ComponentModel.IContainer components = null;
///
/// Clean up any resources being used.
///
/// true if managed resources should be disposed; otherwise, false.
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
///
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
///
private void InitializeComponent()
{
this.menuStrip1 = new System.Windows.Forms.MenuStrip();
this.sToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.subjectToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.studentToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.chapterToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.subChapterToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.menuStrip1.SuspendLayout();
this.SuspendLayout();
//
// menuStrip1
//
this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.sToolStripMenuItem});
this.menuStrip1.Location = new System.Drawing.Point(0, 0);
this.menuStrip1.Name = "menuStrip1";
this.menuStrip1.Size = new System.Drawing.Size(284, 24);
this.menuStrip1.TabIndex = 0;
this.menuStrip1.Text = "menuStrip1";
//
// sToolStripMenuItem
//
this.sToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.subjectToolStripMenuItem,
this.studentToolStripMenuItem,
this.chapterToolStripMenuItem,
this.subChapterToolStripMenuItem});
this.sToolStripMenuItem.Name = "sToolStripMenuItem";
this.sToolStripMenuItem.Size = new System.Drawing.Size(96, 20);
this.sToolStripMenuItem.Text = "StudentMaster";
//
// subjectToolStripMenuItem
//
this.subjectToolStripMenuItem.Name = "subjectToolStripMenuItem";
this.subjectToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
this.subjectToolStripMenuItem.Text = "Subject";
//
// studentToolStripMenuItem
//
this.studentToolStripMenuItem.Name = "studentToolStripMenuItem";
this.studentToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
this.studentToolStripMenuItem.Text = "Student";
//
// chapterToolStripMenuItem
//
this.chapterToolStripMenuItem.Name = "chapterToolStripMenuItem";
this.chapterToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
this.chapterToolStripMenuItem.Text = "Chapter";
//
// subChapterToolStripMenuItem
//
this.subChapterToolStripMenuItem.Name = "subChapterToolStripMenuItem";
this.subChapterToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
this.subChapterToolStripMenuItem.Text = "sub chapter";
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(284, 264);
this.Controls.Add(this.menuStrip1);
this.MainMenuStrip = this.menuStrip1;
this.Name = "Form1";
this.Text = "Form1";
this.menuStrip1.ResumeLayout(false);
this.menuStrip1.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.MenuStrip menuStrip1;
private System.Windows.Forms.ToolStripMenuItem sToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem subjectToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem studentToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem chapterToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem subChapterToolStripMenuItem;
}
}
thanks
If this post is useful then mark it as "Accepted Answer"