inputform.cs
来自「window mobile 中非全屏显示对话框」· CS 代码 · 共 34 行
CS
34 行
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace NonFullscreenDemo
{
public partial class InputForm : NonFullscreenForm
{
public InputForm()
{
InitializeComponent();
}
private void DefaultButtonForm_Load(object sender, EventArgs e)
{
txtUserName.Focus();
}
private void txtUserName_TextChanged(object sender, EventArgs e)
{
btnOK.Enabled = !String.IsNullOrEmpty(txtUserName.Text);
}
public string UserName
{
get { return txtUserName.Text; }
set { txtUserName.Text = value; }
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?