⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 createdlg.cs

📁 os 课程设计不含文档 123456789
💻 CS
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -