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 WindowsFormsApplication1
{
public partial class scene : Form
{
public scene()
{
InitializeComponent();
}
private int pCounter;
private void showResult_Click(object sender, EventArgs e)
{
string a = "current counter=" + this.pCounter.ToString("D6");
MessageBox.Show(a,"TIP");
}
private void ShowCounter()
{
string b=this.pCounter.ToString("D6");
this.result.Text=b;
}
private void Form1_Load(object sender, EventArgs e)
{
MessageBox.Show("hello,I am peak ", "Introduce");
this.pCounter = 1;
this.ShowCounter();
textBox1.PasswordChar = '#';
textBox2.UseSystemPasswordChar = true;
rtf.LoadFile("E:\\a.RTF",RichTextBoxStreamType.RichText);
}
private void multi2_Click(object sender, EventArgs e)
{
this.pCounter *= 2; ;
this.ShowCounter();
}
private void divide2_Click(object sender, EventArgs e)
{
this.pCounter /= 2;
this.ShowCounter();
}
}
}