- 311 名前:デフォルトの名無しさん mailto:sage [2008/09/05(金) 17:19:57 ]
- public partial class Form1 : Form
{ static System.Windows.Forms.Timer myTimer = new System.Windows.Forms.Timer(); public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { textBox1.Text = null; Random rnd = new Random(); myTimer.Tick += new EventHandler(button1_Click); string a = rnd.Next(1, 5).ToString(); textBox1.Text = a; myTimer.Interval = rnd.Next(1, 5) * 30000; myTimer.Start(); Application.DoEvents(); これ直したコードです もうエラーでてないけどおかしいところツッコミまくってください
|

|