And my screen design is as follows. Please note that the screen design is not yet finished.
namespace NewTims
{ partial class DaySchedule_Form
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.Schedule_dateTimePicker = new System.Windows.Forms.DateTimePicker();
this.date_label = new System.Windows.Forms.Label();
this.Trainer_label = new System.Windows.Forms.Label();
this.Trainer_listBox = new System.Windows.Forms.ListBox();
this.Add_button = new System.Windows.Forms.Button();
this.Delete_button = new System.Windows.Forms.Button();
this.DayRemark_textBox = new System.Windows.Forms.TextBox();
this.DayRemark_label = new System.Windows.Forms.Label();
this.splitContainer = new System.Windows.Forms.SplitContainer();
this.Heading_tableLayoutPanel = new System.Windows.Forms.TableLayoutPanel();
this.Morning_label = new System.Windows.Forms.Label();
this.Evening_label = new System.Windows.Forms.Label();
this.Afternoon_label = new System.Windows.Forms.Label();
this.Course_tableLayoutPanel = new System.Windows.Forms.TableLayoutPanel();
this.Morning_listView = new System.Windows.Forms.ListView();
this.ls = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.course = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.stud = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.rm = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.lrm = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.remark = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.Afternoon_listView = new System.Windows.Forms.ListView();
this.Evening_listView = new System.Windows.Forms.ListView();
this.Course_listBox = new System.Windows.Forms.ListBox();
this.Subject_listBox = new System.Windows.Forms.ListBox();
this.Weekback_xbutton = new BaseControlLibrary.Xbutton();
this.Dayback_xbutton = new BaseControlLibrary.Xbutton();
((System.ComponentModel.ISupportInitialize)(this.splitContainer)).BeginInit();
this.splitContainer.Panel1.SuspendLayout();
this.splitContainer.Panel2.SuspendLayout();
this.splitContainer.SuspendLayout();
this.Heading_tableLayoutPanel.SuspendLayout();
this.Course_tableLayoutPanel.SuspendLayout();
this.SuspendLayout();
//
// Schedule_dateTimePicker
//
this.Schedule_dateTimePicker.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.Schedule_dateTimePicker.CustomFormat = "dd/MM/yyyy";
this.Schedule_dateTimePicker.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
this.Schedule_dateTimePicker.Location = new System.Drawing.Point(651, 12);
this.Schedule_dateTimePicker.Margin = new System.Windows.Forms.Padding(96, 3, 3, 3);
this.Schedule_dateTimePicker.Name = "Schedule_dateTimePicker";
this.Schedule_dateTimePicker.Size = new System.Drawing.Size(95, 20);
this.Schedule_dateTimePicker.TabIndex = 6;
this.Schedule_dateTimePicker.Value = new System.DateTime(2023, 6, 25, 7, 0, 0, 0);
//
// date_label
//
this.date_label.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.date_label.AutoSize = true;
this.date_label.Location = new System.Drawing.Point(618, 15);
this.date_label.Name = "date_label";
this.date_label.Size = new System.Drawing.Size(30, 13);
this.date_label.TabIndex = 7;
this.date_label.Text = "Date";
//
// Trainer_label
//
this.Trainer_label.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.Trainer_label.AutoSize = true;
this.Trainer_label.Location = new System.Drawing.Point(830, 87);
this.Trainer_label.Name = "Trainer_label";
this.Trainer_label.Size = new System.Drawing.Size(45, 13);
this.Trainer_label.TabIndex = 15;
this.Trainer_label.Text = "Trainers";
//
// Trainer_listBox
//
this.Trainer_listBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.Trainer_listBox.FormattingEnabled = true;
this.Trainer_listBox.Location = new System.Drawing.Point(833, 106);
this.Trainer_listBox.Name = "Trainer_listBox";
this.Trainer_listBox.Size = new System.Drawing.Size(124, 95);
this.Trainer_listBox.TabIndex = 16;
//
// Add_button
//
this.Add_button.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.Add_button.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.Add_button.Location = new System.Drawing.Point(881, 84);
this.Add_button.Margin = new System.Windows.Forms.Padding(1);
this.Add_button.Name = "Add_button";
this.Add_button.Size = new System.Drawing.Size(34, 19);
this.Add_button.TabIndex = 17;
this.Add_button.Text = "Add";
this.Add_button.UseVisualStyleBackColor = true;
//
// Delete_button
//
this.Delete_button.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.Delete_button.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.Delete_button.Location = new System.Drawing.Point(916, 84);
this.Delete_button.Margin = new System.Windows.Forms.Padding(1);
this.Delete_button.Name = "Delete_button";
this.Delete_button.Size = new System.Drawing.Size(40, 19);
this.Delete_button.TabIndex = 18;
this.Delete_button.Text = "Delete";
this.Delete_button.UseVisualStyleBackColor = true;
//
// DayRemark_textBox
//
this.DayRemark_textBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Right)));
this.DayRemark_textBox.Location = new System.Drawing.Point(834, 224);
this.DayRemark_textBox.Multiline = true;
this.DayRemark_textBox.Name = "DayRemark_textBox";
this.DayRemark_textBox.Size = new System.Drawing.Size(123, 252);
this.DayRemark_textBox.TabIndex = 19;
//
// DayRemark_label
//
this.DayRemark_label.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.DayRemark_label.AutoSize = true;
this.DayRemark_label.Location = new System.Drawing.Point(834, 208);
this.DayRemark_label.Name = "DayRemark_label";
this.DayRemark_label.Size = new System.Drawing.Size(66, 13);
this.DayRemark_label.TabIndex = 20;
this.DayRemark_label.Text = "Day Remark";
//
// splitContainer
//
this.splitContainer.Location = new System.Drawing.Point(11, 37);
this.splitContainer.Name = "splitContainer";
this.splitContainer.Orientation = System.Windows.Forms.Orientation.Horizontal;
//
// splitContainer.Panel1
//
this.splitContainer.Panel1.Controls.Add(this.Heading_tableLayoutPanel);
this.splitContainer.Panel1.Controls.Add(this.Course_tableLayoutPanel);
//
// splitContainer.Panel2
//
this.splitContainer.Panel2.Controls.Add(this.Course_listBox);
this.splitContainer.Panel2.Controls.Add(this.Subject_listBox);
this.splitContainer.Size = new System.Drawing.Size(812, 437);
this.splitContainer.SplitterDistance = 298;
this.splitContainer.SplitterWidth = 2;
this.splitContainer.TabIndex = 27;
//
// Heading_tableLayoutPanel
//
this.Heading_tableLayoutPanel.ColumnCount = 3;
this.Heading_tableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33333F));
this.Heading_tableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33333F));
this.Heading_tableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33333F));
this.Heading_tableLayoutPanel.Controls.Add(this.Morning_label, 0, 0);
this.Heading_tableLayoutPanel.Controls.Add(this.Evening_label, 2, 0);
this.Heading_tableLayoutPanel.Controls.Add(this.Afternoon_label, 1, 0);
this.Heading_tableLayoutPanel.Location = new System.Drawing.Point(4, 3);
this.Heading_tableLayoutPanel.Name = "Heading_tableLayoutPanel";
this.Heading_tableLayoutPanel.RowCount = 1;
this.Heading_tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
this.Heading_tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 21F));
this.Heading_tableLayoutPanel.Size = new System.Drawing.Size(803, 21);
this.Heading_tableLayoutPanel.TabIndex = 1;
//
// Morning_label
//
this.Morning_label.AutoSize = true;
this.Morning_label.Location = new System.Drawing.Point(3, 0);
this.Morning_label.Name = "Morning_label";
this.Morning_label.Size = new System.Drawing.Size(85, 13);
this.Morning_label.TabIndex = 0;
this.Morning_label.Text = "Morning Session";
//
// Evening_label
//
this.Evening_label.AutoSize = true;
this.Evening_label.Location = new System.Drawing.Point(537, 0);
this.Evening_label.Name = "Evening_label";
this.Evening_label.Size = new System.Drawing.Size(86, 13);
this.Evening_label.TabIndex = 2;
this.Evening_label.Text = "Evening Session";
//
// Afternoon_label
//
this.Afternoon_label.AutoSize = true;
this.Afternoon_label.Location = new System.Drawing.Point(270, 0);
this.Afternoon_label.Name = "Afternoon_label";
this.Afternoon_label.Size = new System.Drawing.Size(93, 13);
this.Afternoon_label.TabIndex = 1;
this.Afternoon_label.Text = "Afternoon Session";
//
// Course_tableLayoutPanel
//
this.Course_tableLayoutPanel.ColumnCount = 3;
this.Course_tableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33518F)); this.Course_tableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33186F));
this.Course_tableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33296F));
this.Course_tableLayoutPanel.Controls.Add(this.Morning_listView, 0, 0);
this.Course_tableLayoutPanel.Controls.Add(this.Afternoon_listView, 1, 0);
this.Course_tableLayoutPanel.Controls.Add(this.Evening_listView, 2, 0);
this.Course_tableLayoutPanel.Location = new System.Drawing.Point(2, 22);
this.Course_tableLayoutPanel.Name = "Course_tableLayoutPanel";
this.Course_tableLayoutPanel.RowCount = 1;
this.Course_tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
this.Course_tableLayoutPanel.Size = new System.Drawing.Size(807, 278);
this.Course_tableLayoutPanel.TabIndex = 0;
//
// Morning_listView
//
this.Morning_listView.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
this.ls,
this.course,
this.stud,
this.rm,
this.lrm,
this.remark});
this.Morning_listView.HideSelection = false;
this.Morning_listView.Location = new System.Drawing.Point(3, 3);
this.Morning_listView.Name = "Morning_listView";
this.Morning_listView.Size = new System.Drawing.Size(263, 272);
this.Morning_listView.TabIndex = 0;
this.Morning_listView.UseCompatibleStateImageBehavior = false;
//
// Afternoon_listView
//
this.Afternoon_listView.HideSelection = false;
this.Afternoon_listView.Location = new System.Drawing.Point(272, 3);
this.Afternoon_listView.Name = "Afternoon_listView";
this.Afternoon_listView.Size = new System.Drawing.Size(262, 272); this.Afternoon_listView.TabIndex = 1; this.Afternoon_listView.UseCompatibleStateImageBehavior = false;
//
// Evening_listView
//
this.Evening_listView.HideSelection = false;
this.Evening_listView.Location = new System.Drawing.Point(540, 3); this.Evening_listView.Name = "Evening_listView";
this.Evening_listView.Size = new System.Drawing.Size(264, 272); this.Evening_listView.TabIndex = 2; this.Evening_listView.UseCompatibleStateImageBehavior = false;
//
// Course_listBox
//
this.Course_listBox.FormattingEnabled = true;
this.Course_listBox.Location = new System.Drawing.Point(60, 0); this.Course_listBox.Name = "Course_listBox";
this.Course_listBox.Size = new System.Drawing.Size(166, 134); this.Course_listBox.TabIndex = 28;
//
// Subject_listBox
//
this.Subject_listBox.FormattingEnabled = true;
this.Subject_listBox.Location = new System.Drawing.Point(5, 0); this.Subject_listBox.Name = "Subject_listBox";
this.Subject_listBox.Size = new System.Drawing.Size(52, 134); this.Subject_listBox.TabIndex = 27;
//
// Weekback_xbutton
//
this.Weekback_xbutton.Location = new System.Drawing.Point(11, 10); this.Weekback_xbutton.Name = "Weekback_xbutton";
this.Weekback_xbutton.Size = new System.Drawing.Size(23, 23); this.Weekback_xbutton.TabIndex = 28;
//
// Dayback_xbutton
//
this.Dayback_xbutton.Location = new System.Drawing.Point(34, 10);
this.Dayback_xbutton.Name = "Dayback_xbutton";
this.Dayback_xbutton.Size = new System.Drawing.Size(23, 23);
this.Dayback_xbutton.TabIndex = 29;
//
// DaySchedule_Form
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(967, 486);
this.Controls.Add(this.Dayback_xbutton);
this.Controls.Add(this.Weekback_xbutton);
this.Controls.Add(this.splitContainer);
this.Controls.Add(this.DayRemark_label); this.Controls.Add(this.DayRemark_textBox);
this.Controls.Add(this.Delete_button);
this.Controls.Add(this.Add_button);
this.Controls.Add(this.Trainer_listBox);
this.Controls.Add(this.Trainer_label);
this.Controls.Add(this.date_label);
this.Controls.Add(this.Schedule_dateTimePicker);
this.MinimumSize = new System.Drawing.Size(400, 200);
this.Name = "DaySchedule_Form";
this.Text = "Day Schedule";
this.Load += new System.EventHandler(this.DaySchedule_Form_Load); this.Controls.SetChildIndex(this.Schedule_dateTimePicker, 0);
this.Controls.SetChildIndex(this.date_label, 0);
this.Controls.SetChildIndex(this.Trainer_label, 0);
this.Controls.SetChildIndex(this.Trainer_listBox, 0);
this.Controls.SetChildIndex(this.Add_button, 0);
this.Controls.SetChildIndex(this.Delete_button, 0);
this.Controls.SetChildIndex(this.DayRemark_textBox, 0);
this.Controls.SetChildIndex(this.DayRemark_label, 0);
this.Controls.SetChildIndex(this.splitContainer, 0);
this.Controls.SetChildIndex(this.Weekback_xbutton, 0);
this.Controls.SetChildIndex(this.Dayback_xbutton, 0);
this.splitContainer.Panel1.ResumeLayout(false);
this.splitContainer.Panel2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.splitContainer)).EndInit();
this.splitContainer.ResumeLayout(false);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.DateTimePicker Schedule_dateTimePicker;
private System.Windows.Forms.Label date_label;
private System.Windows.Forms.Label Trainer_label;
private System.Windows.Forms.ListBox Trainer_listBox;
private System.Windows.Forms.Button Add_button;
private System.Windows.Forms.Button Delete_button;
private System.Windows.Forms.TextBox DayRemark_textBox;
private System.Windows.Forms.Label DayRemark_label;
private System.Windows.Forms.SplitContainer splitContainer;
private System.Windows.Forms.ListBox Course_listBox;
private System.Windows.Forms.ListBox Subject_listBox;
private System.Windows.Forms.TableLayoutPanel Course_tableLayoutPanel;
private System.Windows.Forms.TableLayoutPanel Heading_tableLayoutPanel;
private System.Windows.Forms.Label Morning_label;
private System.Windows.Forms.Label Evening_label;
private System.Windows.Forms.Label Afternoon_label;
private BaseControlLibrary.Xbutton Weekback_xbutton;
private BaseControlLibrary.Xbutton Dayback_xbutton;
private System.Windows.Forms.ListView Morning_listView;
private System.Windows.Forms.ColumnHeader ls;
private System.Windows.Forms.ColumnHeader course;
private System.Windows.Forms.ColumnHeader stud;
private System.Windows.Forms.ColumnHeader rm;
private System.Windows.Forms.ColumnHeader lrm;
private System.Windows.Forms.ColumnHeader remark;
private System.Windows.Forms.ListView Afternoon_listView;
private System.Windows.Forms.ListView Evening_listView;
}
}