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 WindowsFormsApplication3
{
public partial class Form1 : Form
{
string s;
public Form1()
{
InitializeComponent();
}
private void radioButton1_CheckedChanged(object sender, EventArgs e)
{
label1.Font = new Font("取第一个文本框内容",
label1.Font.Size, label1.Font.Style);
s = textBox1.Text;
}
private void radioButton2_CheckedChanged(object sender, EventArgs e)
{
label1.Font = new Font("取第二个文本框内容",
label1.Font.Size,label1.Font.Style);
s = textBox2.Text;
}
private void Form1_Load(object sender, EventArgs e)
{
textBox1.MaxLength = 6;
textBox2.PasswordChar='*';
}
private void button1_Click(object sender, EventArgs e)
{
label1.Text = s;
}
}
}
窗体实验之单选按钮
最新推荐文章于 2020-09-23 19:54:06 发布