就像QQ登陆时,输入密码那样 
做出来就像QQ登陆的那种小键盘模式
在winform框架中实现,用C#语言。

解决方案 »

  1.   

    就是在一个窗体内有许多button  每个button对应每个字母和数字
      

  2.   

    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 KFEMR
    {
        public partial class Form3 : Form
        {
            public Form3()
            {
                InitializeComponent();
            }        private void button_Click(object sender, EventArgs e)
            {
               textBox1.Text+=((Button)sender).Text;
            }            private void Form3_Paint(object sender, PaintEventArgs e)
            {
                 for (int i = 0; i < 26; i++)
                {
                    Button bt = new Button();
                    bt.Text=((char)(65+i)).ToString();
                    flowLayoutPanel1.Controls.Add(bt);
                    bt.Click += new EventHandler(button_Click);
                }
            }
        }
    }大致就是这样。
      

  3.   


    错误 1 当前上下文中不存在名称“button_Click”
      

  4.   

    不会啊。我的可以运行的。你是不是没添加textBox1和flowLayoutPanel1啊。
      

  5.   

    各button位置最好随机排列,安全性更好
    就像建行的网上银行一样