📄 form1.cs
字号:
#region Using directives
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Windows.Forms;
#endregion
namespace Properties
{
partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
resize();
}
private void resize()
{
int w = this.Size.Width;
width.Text = w.ToString();
int h = this.Size.Height;
height.Text = h.ToString();
string s = string.Format("({0}, {1})", w, h);
this.Text = s;
}
private void Form1_Resize(object sender, EventArgs e)
{
resize();
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -