2014年11月27日 星期四

世界勵志大使 梁凱恩

世界勵志大使 梁凱恩

今天這部勵志的短片給我最大的啟發就是他所述說那八個創造奇蹟的關鍵;其中我覺得最讓我震撼的一個關鍵點就是"人活著就是為了改變這個世界"。我覺得這句話就是創造奇蹟的起點,沒有改變,就沒有過程;沒有過程,就沒有成功。人因夢想而偉大,因改變而成功。

2014年11月20日 星期四

99乘法表

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 WindowsFormsApplication6
{
public partial class Form1 : Form
{
Button[,] buttons = new Button[10, 10];
public Form1()
{
InitializeComponent();
}

private void Form1_Load(object sender, EventArgs e)
{
for (int i = 1; i < 10; i++)
{
for (int j = 1; j < 10; j++)
{
buttons[i, j] = new Button();
buttons[i, j].Location = new Point(i * 30, j * 30);
buttons[i, j].Size = new Size(30, 30);
buttons[i, j].Text = Convert.ToString(i * j);

this.Controls.Add(buttons[i, j]);
}

}
}
}
}

2014年11月13日 星期四

99乘法表格子







----------------------------------------------------------------------------------------------------------------


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 WindowsFormsApplication2
{
    public partial class Form1 : Form
    {
        System.Windows.Forms.Button button1;
        System.Windows.Forms.Button[] buttons;
        Button[,] button = new Button[9, 9];
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            for (int i = 0; i < 9; i++)
            {
                for (int j = 0; j < 9; j++)
                {
                    button[i, j] = new Button();
                 
                    button[i, j].Location = new Point(i * 20, j * 20);
                    this.Controls.Add(button[i, j]);
                }
            }
        }
    }
}