createdlg.cs
来自「os 课程设计不含文档 123456789」· CS 代码 · 共 61 行
CS
61 行
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace os
{
public partial class createdlg : System.Windows.Forms.Form
{
public string Result;
//private System.Windows.Forms.Label label1;
//private System.Windows.Forms.TextBox textBox1;
//private System.Windows.Forms.Button button1;
//private System.ComponentModel.Container components = null;
public createdlg()
{
InitializeComponent();
}
//protected override void Dispose(bool disposing)
//{
// if (disposing)
// {
// if (components != null)
// {
// components.Dispose();
// }
// }
// base.Dispose(disposing);
//}
public void InitDiaLog(string Title, string Content)
{
this.Text = Title;
label1.Text = Content;
}
private void createdlg_Load(object sender, EventArgs e)
{
textBox1.Text = Result;
}
private void button1_Click(object sender, EventArgs e)
{
Result = textBox1.Text;
this.Close();
}
private void textBox1_KeyPress(object sender, KeyPressEventArgs e)
{
if (e.KeyChar == Convert.ToChar(13))
{
Result = textBox1.Text;
this.Close();
}
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?