📄 form1.cs
字号:
namespace ReadBooks
{
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.WinForms;
using System.Data;
/// <summary>
/// Summary description for Form1.
/// </summary>
public class Form1 : System.WinForms.Form
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.Container components;
private System.WinForms.Label label4;
private System.WinForms.Label label3;
private System.WinForms.Label label2;
private System.WinForms.Label page;
private System.WinForms.RichTextBox richTextBox1;
private System.WinForms.NumericUpDown PageNumber;
private System.WinForms.NumericUpDown PageLength;
private System.WinForms.ListBox ListOfBooks;
public Form1()
{
//
// Required for Windows Form Designer support
//
InitializeComponent();
//
// TODO: Add any constructor code after InitializeComponent call
//
}
/// <summary>
/// Clean up any resources being used.
/// </summary>
public override void Dispose()
{
base.Dispose();
components.Dispose();
}
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container ();
this.richTextBox1 = new System.WinForms.RichTextBox ();
this.label3 = new System.WinForms.Label ();
this.label2 = new System.WinForms.Label ();
this.PageLength = new System.WinForms.NumericUpDown ();
this.ListOfBooks = new System.WinForms.ListBox ();
this.PageNumber = new System.WinForms.NumericUpDown ();
this.page = new System.WinForms.Label ();
this.label4 = new System.WinForms.Label ();
PageLength.BeginInit ();
PageNumber.BeginInit ();
//@this.TrayHeight = 0;
//@this.TrayLargeIcon = false;
//@this.TrayAutoArrange = true;
richTextBox1.Text = "richTextBox1";
richTextBox1.Size = new System.Drawing.Size (128, 136);
richTextBox1.TabIndex = 3;
richTextBox1.Location = new System.Drawing.Point (224, 56);
label3.Location = new System.Drawing.Point (40, 16);
label3.Text = "List Of Books";
label3.Size = new System.Drawing.Size (120, 24);
label3.TabIndex = 6;
label2.Location = new System.Drawing.Point (224, 216);
label2.Text = "Page Number";
label2.Size = new System.Drawing.Size (128, 32);
label2.TabIndex = 5;
PageLength.Value = new decimal (1);
PageLength.Location = new System.Drawing.Point (40, 256);
PageLength.Size = new System.Drawing.Size (128, 20);
PageLength.Minimum = new decimal (1);
PageLength.TabIndex = 1;
ListOfBooks.Location = new System.Drawing.Point (40, 56);
ListOfBooks.Size = new System.Drawing.Size (120, 134);
ListOfBooks.TabIndex = 0;
PageNumber.Value = new decimal (1);
PageNumber.Location = new System.Drawing.Point (224, 264);
PageNumber.Size = new System.Drawing.Size (136, 20);
PageNumber.Minimum = new decimal (1);
PageNumber.TabIndex = 2;
page.Location = new System.Drawing.Point (224, 8);
page.Size = new System.Drawing.Size (136, 40);
page.TabIndex = 4;
label4.Location = new System.Drawing.Point (40, 208);
label4.Text = "Page Lenth";
label4.Size = new System.Drawing.Size (120, 32);
label4.TabIndex = 7;
this.Text = "Form1";
this.AutoScaleBaseSize = new System.Drawing.Size (5, 13);
this.ClientSize = new System.Drawing.Size (392, 317);
this.Click += new System.EventHandler (this.Form1_Click);
this.Controls.Add (this.label4);
this.Controls.Add (this.label3);
this.Controls.Add (this.label2);
this.Controls.Add (this.page);
this.Controls.Add (this.richTextBox1);
this.Controls.Add (this.PageNumber);
this.Controls.Add (this.PageLength);
this.Controls.Add (this.ListOfBooks);
PageLength.EndInit ();
PageNumber.EndInit ();
}
protected void Form1_Click (object sender, System.EventArgs e)
{
}
/// <summary>
/// The main entry point for the application.
/// </summary>
public static void Main(string[] args)
{
Application.Run(new Form1());
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -