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

📄 myform.cs

📁 C#做的一个文本编辑器
💻 CS
📖 第 1 页 / 共 2 页
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Data.SqlClient;


namespace myTest
{
	/// <summary>
	/// Form1 的摘要说明。
	/// </summary>
	public class myForm : System.Windows.Forms.Form
	{
		private System.Windows.Forms.Label nameLabel;
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.TextBox nameText;
		private System.Windows.Forms.TextBox passwordText;
		private System.Windows.Forms.Button sureButton;
		private System.Windows.Forms.Button concelButton;
		/// <summary>
		/// 必需的设计器变量。
		/// </summary>
		private System.ComponentModel.Container components = null;

		public myForm()
		{
			//
			// Windows 窗体设计器支持所必需的
			//
			InitializeComponent();
            this.Text = "登录";
			//
			// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
			//
		}

		/// <summary>
		/// 清理所有正在使用的资源。
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if (components != null) 
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows 窗体设计器生成的代码
		/// <summary>
		/// 设计器支持所需的方法 - 不要使用代码编辑器修改
		/// 此方法的内容。
		/// </summary>
		private void InitializeComponent()
		{
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(myForm));
			this.nameLabel = new System.Windows.Forms.Label();
			this.label1 = new System.Windows.Forms.Label();
			this.nameText = new System.Windows.Forms.TextBox();
			this.passwordText = new System.Windows.Forms.TextBox();
			this.sureButton = new System.Windows.Forms.Button();
			this.concelButton = new System.Windows.Forms.Button();
			this.SuspendLayout();
			// 
			// nameLabel
			// 
			this.nameLabel.AccessibleDescription = resources.GetString("nameLabel.AccessibleDescription");
			this.nameLabel.AccessibleName = resources.GetString("nameLabel.AccessibleName");
			this.nameLabel.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("nameLabel.Anchor")));
			this.nameLabel.AutoSize = ((bool)(resources.GetObject("nameLabel.AutoSize")));
			this.nameLabel.BackColor = System.Drawing.Color.SkyBlue;
			this.nameLabel.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("nameLabel.Dock")));
			this.nameLabel.Enabled = ((bool)(resources.GetObject("nameLabel.Enabled")));
			this.nameLabel.Font = ((System.Drawing.Font)(resources.GetObject("nameLabel.Font")));
			this.nameLabel.Image = ((System.Drawing.Image)(resources.GetObject("nameLabel.Image")));
			this.nameLabel.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("nameLabel.ImageAlign")));
			this.nameLabel.ImageIndex = ((int)(resources.GetObject("nameLabel.ImageIndex")));
			this.nameLabel.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("nameLabel.ImeMode")));
			this.nameLabel.Location = ((System.Drawing.Point)(resources.GetObject("nameLabel.Location")));
			this.nameLabel.Name = "nameLabel";
			this.nameLabel.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("nameLabel.RightToLeft")));
			this.nameLabel.Size = ((System.Drawing.Size)(resources.GetObject("nameLabel.Size")));
			this.nameLabel.TabIndex = ((int)(resources.GetObject("nameLabel.TabIndex")));
			this.nameLabel.Text = resources.GetString("nameLabel.Text");
			this.nameLabel.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("nameLabel.TextAlign")));
			this.nameLabel.Visible = ((bool)(resources.GetObject("nameLabel.Visible")));
			// 
			// label1
			// 
			this.label1.AccessibleDescription = resources.GetString("label1.AccessibleDescription");
			this.label1.AccessibleName = resources.GetString("label1.AccessibleName");
			this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("label1.Anchor")));
			this.label1.AutoSize = ((bool)(resources.GetObject("label1.AutoSize")));
			this.label1.BackColor = System.Drawing.Color.SkyBlue;
			this.label1.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("label1.Dock")));
			this.label1.Enabled = ((bool)(resources.GetObject("label1.Enabled")));
			this.label1.Font = ((System.Drawing.Font)(resources.GetObject("label1.Font")));
			this.label1.Image = ((System.Drawing.Image)(resources.GetObject("label1.Image")));
			this.label1.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("label1.ImageAlign")));
			this.label1.ImageIndex = ((int)(resources.GetObject("label1.ImageIndex")));
			this.label1.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("label1.ImeMode")));
			this.label1.Location = ((System.Drawing.Point)(resources.GetObject("label1.Location")));
			this.label1.Name = "label1";
			this.label1.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("label1.RightToLeft")));
			this.label1.Size = ((System.Drawing.Size)(resources.GetObject("label1.Size")));
			this.label1.TabIndex = ((int)(resources.GetObject("label1.TabIndex")));
			this.label1.Text = resources.GetString("label1.Text");
			this.label1.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("label1.TextAlign")));
			this.label1.Visible = ((bool)(resources.GetObject("label1.Visible")));
			// 
			// nameText
			// 
			this.nameText.AccessibleDescription = resources.GetString("nameText.AccessibleDescription");
			this.nameText.AccessibleName = resources.GetString("nameText.AccessibleName");
			this.nameText.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("nameText.Anchor")));
			this.nameText.AutoSize = ((bool)(resources.GetObject("nameText.AutoSize")));
			this.nameText.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("nameText.BackgroundImage")));
			this.nameText.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("nameText.Dock")));
			this.nameText.Enabled = ((bool)(resources.GetObject("nameText.Enabled")));
			this.nameText.Font = ((System.Drawing.Font)(resources.GetObject("nameText.Font")));
			this.nameText.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("nameText.ImeMode")));
			this.nameText.Location = ((System.Drawing.Point)(resources.GetObject("nameText.Location")));
			this.nameText.MaxLength = ((int)(resources.GetObject("nameText.MaxLength")));
			this.nameText.Multiline = ((bool)(resources.GetObject("nameText.Multiline")));
			this.nameText.Name = "nameText";
			this.nameText.PasswordChar = ((char)(resources.GetObject("nameText.PasswordChar")));
			this.nameText.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("nameText.RightToLeft")));
			this.nameText.ScrollBars = ((System.Windows.Forms.ScrollBars)(resources.GetObject("nameText.ScrollBars")));
			this.nameText.Size = ((System.Drawing.Size)(resources.GetObject("nameText.Size")));
			this.nameText.TabIndex = ((int)(resources.GetObject("nameText.TabIndex")));
			this.nameText.Text = resources.GetString("nameText.Text");
			this.nameText.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("nameText.TextAlign")));
			this.nameText.Visible = ((bool)(resources.GetObject("nameText.Visible")));
			this.nameText.WordWrap = ((bool)(resources.GetObject("nameText.WordWrap")));
			// 
			// passwordText
			// 
			this.passwordText.AccessibleDescription = resources.GetString("passwordText.AccessibleDescription");
			this.passwordText.AccessibleName = resources.GetString("passwordText.AccessibleName");
			this.passwordText.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("passwordText.Anchor")));
			this.passwordText.AutoSize = ((bool)(resources.GetObject("passwordText.AutoSize")));
			this.passwordText.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("passwordText.BackgroundImage")));

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -