using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace TextBoxToolTipErrorProvide
{
public partial class MainForm : Form
{
public MainForm()
{
InitializeComponent();
}
private void MainForm_Load(object sender, EventArgs e)
{
toolTip1.SetToolTip(textBoxUserName, "用户名。。。<=10");
toolTip1.SetToolTip(textBoxPassword, "密码。。。>=5,字母与数字");
toolTip1.SetToolTip(buttonOK, "显示");
errorProvider1.BlinkStyle = ErrorBlinkStyle.AlwaysBlink;
}
private void textBoxPassword_TextChanged(object sender, EventArgs e)
{
textBoxPwdMessage.Text = textBoxPassword.Text;
}
本内容试读结束,登录后可阅读更多
下载后可阅读完整内容,剩余2页未读,立即下载