这个简单。
新建一个windows窗体,在窗体上放一下textbox和一个按钮button1.
单击按钮产生一个事件:
using System;
using System.Collections.Generic;
using
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace 九九乘法表
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
for (int i = 1; i <= 9; i++)
{
for (int j = 1; j <= 9; j++)
{
textBox1.Text += i.ToString() + "*" + j.ToString()+"="+Convert.ToString(i*j)+" ";
}
textBox1.Text += Environment.NewLine;
}
}
}
}