C# 回复:随机组合18个字符https://bbs.csdn.net/topics/392560800

 

        //TextBox 姓名 = new TextBox(), 电话 = new TextBox(), 随机 = new TextBox();
            //姓名.Parent = 电话.Parent = 随机.Parent = this;
            //电话.Location = new Point(5, 5);
            //姓名.Location = new Point(电话.Right + 5, 5);
            //随机.Location = new Point(姓名.Right + 5, 5);
            //姓名.Text = "qwertyuioplkjhgfds";
            //电话.Text = "mnbvcxzasdfghjklpo";
            //随机.Text = string.Join(" ", Enumerable.Range(1, 18)
            //    .Select(数 => new Random(Guid.NewGuid().GetHashCode())
            //        .Next(0, 35)).ToArray().Select(aa => (姓名.Text + 电话.Text)[aa]));

 

上一篇:ASP.NET中检验数据库中某个值和textbox中的值一致


下一篇:如何在TextBox中绑定系统时间