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 WindowsFormsApplication5
{
public partial class Form1 : Form
{
string s;
public Form1()
{
InitializeComponent();
}
private void radioButton1_Click(object sender, EventArgs e)
{
s = textBox1.Text;
}
private void radioButton2_Click(object sender, EventArgs e)
{
s = textBox2.Text;
}
private void button1_Click(object sender, EventArgs e)
{
label1.Text = s;
}
private void Form1_Load(object sender, EventArgs e)
{
textBox1.MaxLength = 6;
textBox2.PasswordChar = '*';
}
}
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace WindowsFormsApplication5
{
public partial class Form1 : Form
{
string s;
public Form1()
{
InitializeComponent();
}
private void radioButton1_Click(object sender, EventArgs e)
{
s = textBox1.Text;
}
private void radioButton2_Click(object sender, EventArgs e)
{
s = textBox2.Text;
}
private void button1_Click(object sender, EventArgs e)
{
label1.Text = s;
}
private void Form1_Load(object sender, EventArgs e)
{
textBox1.MaxLength = 6;
textBox2.PasswordChar = '*';
}
}
}