雖然說這樣很有毅力啦!
可是
你不覺得浪費嗎?
用可以做一百隻以上繡花針的量
花了幾十年磨到最後只能用一隻...
剩下99隻的量呢?
這樣汙染水源真的好嗎?
環境就是給你破壞的阿...
不會去找鐵匠,用個模子,用出自己要的型
一次用出一百隻
在修改一下不就能用了嗎?
炎龍劫
2018年10月10日 星期三
2016年1月12日 星期二
夢的解析
(1)對於相信夢的解析的人,我不知道是不是每個人都有用,但我個人至少是這樣的。
(2)對於不相信夢的解析的人,恭喜你看了一篇沒有任何用處的廢文,獲得(閱讀廢文成就+1)
(3)無論信與不信,你都可以嘗試去記錄夢境,透過解夢,來娛樂自己
(4)若有人因此而出現類似,走火入魔,中邪,或者感覺就是卡到陰,一概種種負面能量效果,本人一概不負任何責任,你可以選擇把此篇當笑話看!!!
與其說,睡覺的時候有沒有夢,倒不如說,你到底有沒有記住夢!
透過夢的解析,來分析事情的好壞,也好讓自己有個預防,也多個心理準備。
不知道是否有人記錄過夢,再來做解夢的動作,當一個人心靈越純淨的時候,他所做的夢,根據我的分析,也許會與在宇宙中那股冥冥之中的意志,產生某種類似共鳴的聯繫,說心靈純淨,也許太複雜,那換個方式讓多數人能夠接受的,基本上我們可以稱做,善良或正質品格的人,也許有人會說這是個人體質的緣故,但我想也不盡然吧。
夢的解析,其實從,黃帝開始就已經有注經專門解釋了,或許我們能夠稱作,占卜類別,在西方,也許就是所謂的預言者,這類的人了,龜甲,牛肩胛骨,也是預言類的,太多太多的事情,並不是你所說的科學無法證明他就不存在一樣,就像輪迴,善有善報惡有惡報,也不是佛教中的佛陀所創立的,也只是被提出來而已,如果真的沒事,一個子虛烏有的東西,會讓這個理念,傳承了三四千年嗎?
夢的解析,能分三種,一種是預知夢,一種是警示夢,另一種我忘了
其實,在解夢的部分,我知道,很多人是無法相信的,如果可以,可以先做嘗試,記錄下自己的夢,通常,做夢做到一半,或者剛睡醒大概30秒左右,是能回憶起夢境的,那接下來就是,找GOOGLE大神,按搜尋,"夢見...."。
通常到了這部分,是要舉實例嗎?
我個人有特別去記憶我所做過的夢,我知道有人會說那是睡眠品質不好,但你怎麼不說是記憶力不好呢?
在這部分,不做心理學方面的分析,我不會這方面的知識。
以我來講,在2016.01.13,這天,我睡醒,我也依稀只記得,我好像曾經見過,毛筆,但我並沒有買毛筆啊!!我不知道你們是怎麼分析的,但我是這樣,那到這裡,我們先不解夢,但為甚麼會莫名其妙地夢見毛筆呢?我在想,沒有人會特別去記憶所謂的解夢物件相關事件,其實在這幾天,我一直在思考,我到底,能做甚麼工作,我又能做什麼工作,換句話說就是我根本就不知道我能幹嘛。其實有些東西講出來就不靈了哈,不知道,但我想,不靈就不靈吧,也沒什麼。
接下來大家會想,幹,誰想你聽在那唬爛,編故事我也會,那麼在這,就看個人吧!
以下是夢見毛筆,來至GOOGLE大神
以上來自周公解夢 http://m.golla.tw/a/wupin/maobi.html
(2)對於不相信夢的解析的人,恭喜你看了一篇沒有任何用處的廢文,獲得(閱讀廢文成就+1)
(3)無論信與不信,你都可以嘗試去記錄夢境,透過解夢,來娛樂自己
(4)若有人因此而出現類似,走火入魔,中邪,或者感覺就是卡到陰,一概種種負面能量效果,本人一概不負任何責任,你可以選擇把此篇當笑話看!!!
與其說,睡覺的時候有沒有夢,倒不如說,你到底有沒有記住夢!
透過夢的解析,來分析事情的好壞,也好讓自己有個預防,也多個心理準備。
不知道是否有人記錄過夢,再來做解夢的動作,當一個人心靈越純淨的時候,他所做的夢,根據我的分析,也許會與在宇宙中那股冥冥之中的意志,產生某種類似共鳴的聯繫,說心靈純淨,也許太複雜,那換個方式讓多數人能夠接受的,基本上我們可以稱做,善良或正質品格的人,也許有人會說這是個人體質的緣故,但我想也不盡然吧。
夢的解析,其實從,黃帝開始就已經有注經專門解釋了,或許我們能夠稱作,占卜類別,在西方,也許就是所謂的預言者,這類的人了,龜甲,牛肩胛骨,也是預言類的,太多太多的事情,並不是你所說的科學無法證明他就不存在一樣,就像輪迴,善有善報惡有惡報,也不是佛教中的佛陀所創立的,也只是被提出來而已,如果真的沒事,一個子虛烏有的東西,會讓這個理念,傳承了三四千年嗎?
夢的解析,能分三種,一種是預知夢,一種是警示夢,另一種我忘了
其實,在解夢的部分,我知道,很多人是無法相信的,如果可以,可以先做嘗試,記錄下自己的夢,通常,做夢做到一半,或者剛睡醒大概30秒左右,是能回憶起夢境的,那接下來就是,找GOOGLE大神,按搜尋,"夢見...."。
通常到了這部分,是要舉實例嗎?
我個人有特別去記憶我所做過的夢,我知道有人會說那是睡眠品質不好,但你怎麼不說是記憶力不好呢?
在這部分,不做心理學方面的分析,我不會這方面的知識。
以我來講,在2016.01.13,這天,我睡醒,我也依稀只記得,我好像曾經見過,毛筆,但我並沒有買毛筆啊!!我不知道你們是怎麼分析的,但我是這樣,那到這裡,我們先不解夢,但為甚麼會莫名其妙地夢見毛筆呢?我在想,沒有人會特別去記憶所謂的解夢物件相關事件,其實在這幾天,我一直在思考,我到底,能做甚麼工作,我又能做什麼工作,換句話說就是我根本就不知道我能幹嘛。其實有些東西講出來就不靈了哈,不知道,但我想,不靈就不靈吧,也沒什麼。
接下來大家會想,幹,誰想你聽在那唬爛,編故事我也會,那麼在這,就看個人吧!
以下是夢見毛筆,來至GOOGLE大神
夢見毛筆是什麽意思?做夢夢見毛筆好不好?夢見毛筆有現實的影響和反應,也有夢者的主觀想象,請看下面由小編幫你整理的夢見毛筆的詳細解說吧。
夢見毛筆,預示夢者將會有發財的事情發生,或許能夠趁機打撈一筆,能夠體驗更好的生活。另外也表示你是一個十分註重古早文化的人,十分適合從事寫作方面的工作,成為一個文人。
學生夢見毛筆,預示你在學習上非常的用功,努力了就能夠得到相應的回報,能夠考上自己理想的學校。
孕婦夢見毛筆,預示你的寶寶將會很順利的出生,長大以後將會成為國家的棟梁,能夠給社會做出貢獻。
失業人員夢見毛筆,預示你很快就能夠找到讓自己滿足的新工作,而且報酬很高,能夠讓生活更上一層樓。
工作人員夢見毛筆,預示你將會經歷職位調動,或許很快就能夠爬到更高的層次,薪資自然也會水漲船高。
生意人夢見毛筆,預示你將會有許多新的投資機會出現,需要自己把握好機會,能不能成為富豪就看自己的能力了。
病人夢見毛筆,預示你病情很快就會得到好轉,不用擔心治療費用的問題,能夠得到身邊朋友的資助
以上來自周公解夢 http://m.golla.tw/a/wupin/maobi.html
2014年12月26日 星期五
4*4數字盤推(中)
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 WindowsFormsApplication24
{
public partial class Form1 : Form
{
Button[,] buttons = new Button[10, 10];
int[] array = new int[10];
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
int d1, tmp, k;
Random irand = new Random();
d1 = irand.Next(1, 10);
label1.Text = d1.ToString();
for (int j = 1; j < 10; j++)
{
k = 9 - j + 1;
tmp = array[d1];
array[d1] = array[k];
array[k] = tmp;
}
for (int j = 0; j < 3; j++)
{
for (int i = 0; i < 3; i++)
{
//buttons[i, j] = new Button();
buttons[i, j].Location = new Point(j * 50, i * 50);
buttons[i, j].Text = array[i * 3 + j + 1].ToString();
this.Controls.Add(buttons[i, j]);
}
}
}
private void movement(int i, int j, string s) {
MessageBox.Show("i=" + i + ",j" + j + "" + s);
}
private void Form1_Load(object sender, EventArgs e)
{
// Instantiating all the buttons in the array
for (int i = 0; i < 9; i++)
{
array[i] = i;
}
/*
for (int j = 1; j < 10; j++)
{
buttons[1, j] = new Button();
buttons[1, j].Location = new Point(50 * j, 50);
buttons[1, j].Text = array[j].ToString();
this.Controls.Add(buttons[1, j]);
}
*/
for (int j = 0; j < 3; j++)
{
for (int i = 0; i < 3; i++)
{
buttons[i, j] = new Button();
buttons[i, j].Location = new Point(j * 50, i * 50);
buttons[i, j].Text = (j * 3 + i).ToString();
this.Controls.Add(buttons[i, j]);
buttons[i, j].Click += new EventHandler(Button1_Click);
}
}
}
private void Button1_Click(object sender, EventArgs e)
{
for (int i = 0; i < 3; i++)
{
for (int j = 0; j < 3; j++)
{
if (buttons[i, j].Text == "0")
{
MessageBox.Show("i=" + i + ",j=" + j + " " + buttons[i, j].Text);
}
}
}
for (int i = 0; i < 3; i++)
{
for (int j = 0; j < 3; j++)
{
if (sender == buttons[i, j])
{
MessageBox.Show("i=" + i + ",j=" + j + " " + buttons[i, j].Text);
}
}
}
}
}
}
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace WindowsFormsApplication24
{
public partial class Form1 : Form
{
Button[,] buttons = new Button[10, 10];
int[] array = new int[10];
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
int d1, tmp, k;
Random irand = new Random();
d1 = irand.Next(1, 10);
label1.Text = d1.ToString();
for (int j = 1; j < 10; j++)
{
k = 9 - j + 1;
tmp = array[d1];
array[d1] = array[k];
array[k] = tmp;
}
for (int j = 0; j < 3; j++)
{
for (int i = 0; i < 3; i++)
{
//buttons[i, j] = new Button();
buttons[i, j].Location = new Point(j * 50, i * 50);
buttons[i, j].Text = array[i * 3 + j + 1].ToString();
this.Controls.Add(buttons[i, j]);
}
}
}
private void movement(int i, int j, string s) {
MessageBox.Show("i=" + i + ",j" + j + "" + s);
}
private void Form1_Load(object sender, EventArgs e)
{
// Instantiating all the buttons in the array
for (int i = 0; i < 9; i++)
{
array[i] = i;
}
/*
for (int j = 1; j < 10; j++)
{
buttons[1, j] = new Button();
buttons[1, j].Location = new Point(50 * j, 50);
buttons[1, j].Text = array[j].ToString();
this.Controls.Add(buttons[1, j]);
}
*/
for (int j = 0; j < 3; j++)
{
for (int i = 0; i < 3; i++)
{
buttons[i, j] = new Button();
buttons[i, j].Location = new Point(j * 50, i * 50);
buttons[i, j].Text = (j * 3 + i).ToString();
this.Controls.Add(buttons[i, j]);
buttons[i, j].Click += new EventHandler(Button1_Click);
}
}
}
private void Button1_Click(object sender, EventArgs e)
{
for (int i = 0; i < 3; i++)
{
for (int j = 0; j < 3; j++)
{
if (buttons[i, j].Text == "0")
{
MessageBox.Show("i=" + i + ",j=" + j + " " + buttons[i, j].Text);
}
}
}
for (int i = 0; i < 3; i++)
{
for (int j = 0; j < 3; j++)
{
if (sender == buttons[i, j])
{
MessageBox.Show("i=" + i + ",j=" + j + " " + buttons[i, j].Text);
}
}
}
}
}
}
2014年12月19日 星期五
4*4數字盤推(前)(變身版)
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 WindowsFormsApplication22
{
public partial class Form1 : Form
{
Button[,] buttons = new Button[17, 17];//格子,自己去試拉我不說
int[] array = new int[17];
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
for (int i = 0; i < 16; i++)
{
array[i] = i;//這不是陣列(?!!
}
/*
for (int j = 1; j < 10; j++)
{
buttons[1, j] = new Button();
buttons[1, j].Location = new Point(50 * j, 50);
buttons[1, j].Text = array[j].ToString();
this.Controls.Add(buttons[1, j]);
}
*/
for (int j = 0; j < 4; j++)
{
for (int i = 0; i < 4; i++)
{
buttons[i, j] = new Button();
buttons[i, j].Location = new Point(j * 50, i * 50);
buttons[i, j].Text = (j * 4 + i).ToString();
this.Controls.Add(buttons[i, j]);
buttons[i, j].Click += new EventHandler( Button1_Click);//大小寫的Bb都可以放哈,很好玩(?!
}
}
}
private void Button1_Click(object sender, EventArgs e)//此乃,俺爭家的,不速理免有低
{
for (int i = 0; i < 4; i++)
{
for (int j = 0; j < 4; j++)
{
if (buttons[i, j].Text == "0")
{
MessageBox.Show("i=" + i + ",j=" + j + " " + buttons[i, j].Text);
}
}
}
for (int i = 0; i < 4; i++)
{
for (int j = 0; j < 4; j++)
{
if (sender == buttons[i, j])
{
MessageBox.Show("i=" + i + ",j=" + j + " " + buttons[i, j].Text);
}
}
}
}
private void button1_Click(object sender, EventArgs e)//這個好像是..本身用程式碼打出來的格子
{
int d1, tmp, k;
Random irand = new Random();
d1 = irand.Next(1, 16);
label1.Text = d1.ToString();
for (int j = 1; j < 16; j++)
{
k = 16 - j + 1;
tmp = array[d1];
array[d1] = array[k];
array[k] = tmp;
}
for (int j = 0; j < 4; j++)
{
for (int i = 0; i < 4; i++)
{
buttons[i, j].Size = new System.Drawing.Size(100, 100);
//buttons[i, j] = new Button();
buttons[i, j].BackColor = Color.Yellow;
buttons[i, j].Location = new Point( j * 100, i * 100);
buttons[i, j].Text = array[i*4+j+1].ToString();
this.Controls.Add(buttons[i, j]);
}
}
//buttons[1, 1].Text = array[1].ToString();
/*
for (int j = 1; j < 10; j++)
{
// buttons[1, j] = new Button();
buttons[1, j].Location = new Point(50 * j, 50);
buttons[1, j].Text = array[j].ToString();
this.Controls.Add(buttons[1, j]);
}
*/
label2.Text = array[d1].ToString();
}
private void label2_Click(object sender, EventArgs e)
{
}
private void label1_Click(object sender, EventArgs e)
{
}
}
}
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace WindowsFormsApplication22
{
public partial class Form1 : Form
{
Button[,] buttons = new Button[17, 17];//格子,自己去試拉我不說
int[] array = new int[17];
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
for (int i = 0; i < 16; i++)
{
array[i] = i;//這不是陣列(?!!
}
/*
for (int j = 1; j < 10; j++)
{
buttons[1, j] = new Button();
buttons[1, j].Location = new Point(50 * j, 50);
buttons[1, j].Text = array[j].ToString();
this.Controls.Add(buttons[1, j]);
}
*/
for (int j = 0; j < 4; j++)
{
for (int i = 0; i < 4; i++)
{
buttons[i, j] = new Button();
buttons[i, j].Location = new Point(j * 50, i * 50);
buttons[i, j].Text = (j * 4 + i).ToString();
this.Controls.Add(buttons[i, j]);
buttons[i, j].Click += new EventHandler( Button1_Click);//大小寫的Bb都可以放哈,很好玩(?!
}
}
}
private void Button1_Click(object sender, EventArgs e)//此乃,俺爭家的,不速理免有低
{
for (int i = 0; i < 4; i++)
{
for (int j = 0; j < 4; j++)
{
if (buttons[i, j].Text == "0")
{
MessageBox.Show("i=" + i + ",j=" + j + " " + buttons[i, j].Text);
}
}
}
for (int i = 0; i < 4; i++)
{
for (int j = 0; j < 4; j++)
{
if (sender == buttons[i, j])
{
MessageBox.Show("i=" + i + ",j=" + j + " " + buttons[i, j].Text);
}
}
}
}
private void button1_Click(object sender, EventArgs e)//這個好像是..本身用程式碼打出來的格子
{
int d1, tmp, k;
Random irand = new Random();
d1 = irand.Next(1, 16);
label1.Text = d1.ToString();
for (int j = 1; j < 16; j++)
{
k = 16 - j + 1;
tmp = array[d1];
array[d1] = array[k];
array[k] = tmp;
}
for (int j = 0; j < 4; j++)
{
for (int i = 0; i < 4; i++)
{
buttons[i, j].Size = new System.Drawing.Size(100, 100);
//buttons[i, j] = new Button();
buttons[i, j].BackColor = Color.Yellow;
buttons[i, j].Location = new Point( j * 100, i * 100);
buttons[i, j].Text = array[i*4+j+1].ToString();
this.Controls.Add(buttons[i, j]);
}
}
//buttons[1, 1].Text = array[1].ToString();
/*
for (int j = 1; j < 10; j++)
{
// buttons[1, j] = new Button();
buttons[1, j].Location = new Point(50 * j, 50);
buttons[1, j].Text = array[j].ToString();
this.Controls.Add(buttons[1, j]);
}
*/
label2.Text = array[d1].ToString();
}
private void label2_Click(object sender, EventArgs e)
{
}
private void label1_Click(object sender, EventArgs e)
{
}
}
}
2014年12月11日 星期四
切切切聽說這個是亂數的拉
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 WindowsFormsApplication11
{
public partial class Form1 : Form
{ string c;
int[] a = new int[10];
Button[,] b = new Button[5, 5];
int[,] w=new int[5,5];
Random r1 = new Random();
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
for (int j = 0; j < 5; j++)
{
for (int i = 0; i < 5; i++)
{
b[i, j] = new System.Windows.Forms.Button();
b[i, j].Location = new Point(50 * i, 50 * j);
b[i, j].Click += new EventHandler(b_Click);
b[i, j].Width = 50;
b[i, j].Height = 50;
b[i, j].Text = "" + (i + j * 5);
w[i, j] = i + j * 5;//w[i,j]可以用來紀錄b[i,j]有關的數值
this.Controls.Add(b[i, j]);
}
}
for (int j = 0; j < 25; j++)
{
for (int i = 0; i < j; i++)
{
a[0] = r1.Next(0, j);//a[0]從0到j
a[1] = a[0] % 5;//a[1],a[2]從0到4
a[2] = (a[0] - a[1]) / 5;
c = b[a[1], a[2]].Text;
b[a[1], a[2]].Text = b[i % 5, i / 5].Text;
b[i % 5, i / 5].Text = c;//被隨機到的按鈕與第i個交換名稱
}
}
}
private void b_Click(object sender, EventArgs e) { }
private void button1_Click(object sender, EventArgs e)
{
for (int j = 0; j < 25; j++)
{
for (int i = 0; i < j; i++)
{
a[0] = r1.Next(0, j);
a[1] = a[0] % 5;
a[2] = (a[0] - a[1]) / 5;
c = b[a[1], a[2]].Text;
b[a[1], a[2]].Text = b[i % 5, i / 5].Text;
b[i % 5, i / 5].Text = c;
}
}
}
}
}
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace WindowsFormsApplication11
{
public partial class Form1 : Form
{ string c;
int[] a = new int[10];
Button[,] b = new Button[5, 5];
int[,] w=new int[5,5];
Random r1 = new Random();
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
for (int j = 0; j < 5; j++)
{
for (int i = 0; i < 5; i++)
{
b[i, j] = new System.Windows.Forms.Button();
b[i, j].Location = new Point(50 * i, 50 * j);
b[i, j].Click += new EventHandler(b_Click);
b[i, j].Width = 50;
b[i, j].Height = 50;
b[i, j].Text = "" + (i + j * 5);
w[i, j] = i + j * 5;//w[i,j]可以用來紀錄b[i,j]有關的數值
this.Controls.Add(b[i, j]);
}
}
for (int j = 0; j < 25; j++)
{
for (int i = 0; i < j; i++)
{
a[0] = r1.Next(0, j);//a[0]從0到j
a[1] = a[0] % 5;//a[1],a[2]從0到4
a[2] = (a[0] - a[1]) / 5;
c = b[a[1], a[2]].Text;
b[a[1], a[2]].Text = b[i % 5, i / 5].Text;
b[i % 5, i / 5].Text = c;//被隨機到的按鈕與第i個交換名稱
}
}
}
private void b_Click(object sender, EventArgs e) { }
private void button1_Click(object sender, EventArgs e)
{
for (int j = 0; j < 25; j++)
{
for (int i = 0; i < j; i++)
{
a[0] = r1.Next(0, j);
a[1] = a[0] % 5;
a[2] = (a[0] - a[1]) / 5;
c = b[a[1], a[2]].Text;
b[a[1], a[2]].Text = b[i % 5, i / 5].Text;
b[i % 5, i / 5].Text = c;
}
}
}
}
}
2014年11月28日 星期五
我忘了...
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 WindowsFormsApplication13
{
public partial class Form1 : Form
{
Button[,] Buttons =new Button[5,5];//5*5格子
Random irand = new Random(Guid.NewGuid().GetHashCode());
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
// APPLE();
int a = 70;
int b = 60;
int r;
for (int i = 1; i < 5; i++)
{
for (int j = 1; j < 5; j++)
{
Random irand = new Random(Guid.NewGuid().GetHashCode());
Buttons[i, j] = new Button();
Buttons[i, j].Location = new Point(i * 60, j * 70 + 10);//算格子堅格寬度
this.Controls.Add(Buttons[i, j]);
Buttons[i, j].Size = new System.Drawing.Size(a, b);
r = irand.Next(0, 15);
Buttons[i, j].Text = r.ToString();//轉,顯示
//以下是其他的東西有興趣可以用來玩玩
// Button1 = new System.Windows.Forms.Button();
// Button1.Location = new Point(100, 100);
//Button1.Size = new System.Drawing.Size(200, 200);
//Button1.Click += new EventHandler(Button1_Click);
//Button1.BackColor = Color.Green;
// this.Controls.Add(Button1);
}
}
}
// private void APPLE()
// {
// int r;
// Button1 = new System.Windows.Forms.Button();
// Button1.Location = new Point(100, 100);
// Button1.Size = new System.Drawing.Size(200, 200);
// this.Controls.Add(Button1);
// int width, height;
// width = this.Size.Width;
// height = this.Size.Height;
//Buttons = new System.Windows.Forms.Button[16];
// width= 100;
// height= 100;
// for (int i = 0; i < 16; ++i)
// {
// Random irand = new Random(Guid.NewGuid().GetHashCode());
// Buttons[i] = new Button();
//this.Controls.Add(Buttons[i]);
// Buttons[i].Location = new System.Drawing.Point(300 + i * 100, 100);
//else if (i > 3 && i <= 7)
// Buttons[i].Location = new System.Drawing.Point(200 + (i - 3) * 100, 200);
// else if (i > 7 && i <= 11)
// Buttons[i].Location = new System.Drawing.Point(100 + (i - 6) * 100, 300);
// else if (i > 11 && i <= 16)
// Buttons[i].Location = new System.Drawing.Point(0 + (i - 9) * 100, 400);
//Buttons[i].Text = irand.ToString();
//r=irand.Next(0,15);
// Buttons[i].Size = new Size(width, height);
// Buttons[i].Size = new System.Drawing.Size(100, 100);
// Buttons[i].BackColor = Color.Green;
// Buttons[i].Click += new EventHandler(Buttons_Click);
}
}
//private void Buttons_Click(object sender, EventArgs e)
// {
// Button btn = (Button)sender;
// MessageBox.Show(btn.Text);
// for (int i = 0; i < 16; ++i)
// {
// Buttons[i] = new Button();
// this.Controls.Add(Buttons[i]);
//}
//}
//}
//}
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace WindowsFormsApplication13
{
public partial class Form1 : Form
{
Button[,] Buttons =new Button[5,5];//5*5格子
Random irand = new Random(Guid.NewGuid().GetHashCode());
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
// APPLE();
int a = 70;
int b = 60;
int r;
for (int i = 1; i < 5; i++)
{
for (int j = 1; j < 5; j++)
{
Random irand = new Random(Guid.NewGuid().GetHashCode());
Buttons[i, j] = new Button();
Buttons[i, j].Location = new Point(i * 60, j * 70 + 10);//算格子堅格寬度
this.Controls.Add(Buttons[i, j]);
Buttons[i, j].Size = new System.Drawing.Size(a, b);
r = irand.Next(0, 15);
Buttons[i, j].Text = r.ToString();//轉,顯示
//以下是其他的東西有興趣可以用來玩玩
// Button1 = new System.Windows.Forms.Button();
// Button1.Location = new Point(100, 100);
//Button1.Size = new System.Drawing.Size(200, 200);
//Button1.Click += new EventHandler(Button1_Click);
//Button1.BackColor = Color.Green;
// this.Controls.Add(Button1);
}
}
}
// private void APPLE()
// {
// int r;
// Button1 = new System.Windows.Forms.Button();
// Button1.Location = new Point(100, 100);
// Button1.Size = new System.Drawing.Size(200, 200);
// this.Controls.Add(Button1);
// int width, height;
// width = this.Size.Width;
// height = this.Size.Height;
//Buttons = new System.Windows.Forms.Button[16];
// width= 100;
// height= 100;
// for (int i = 0; i < 16; ++i)
// {
// Random irand = new Random(Guid.NewGuid().GetHashCode());
// Buttons[i] = new Button();
//this.Controls.Add(Buttons[i]);
// Buttons[i].Location = new System.Drawing.Point(300 + i * 100, 100);
//else if (i > 3 && i <= 7)
// Buttons[i].Location = new System.Drawing.Point(200 + (i - 3) * 100, 200);
// else if (i > 7 && i <= 11)
// Buttons[i].Location = new System.Drawing.Point(100 + (i - 6) * 100, 300);
// else if (i > 11 && i <= 16)
// Buttons[i].Location = new System.Drawing.Point(0 + (i - 9) * 100, 400);
//Buttons[i].Text = irand.ToString();
//r=irand.Next(0,15);
// Buttons[i].Size = new Size(width, height);
// Buttons[i].Size = new System.Drawing.Size(100, 100);
// Buttons[i].BackColor = Color.Green;
// Buttons[i].Click += new EventHandler(Buttons_Click);
}
}
//private void Buttons_Click(object sender, EventArgs e)
// {
// Button btn = (Button)sender;
// MessageBox.Show(btn.Text);
// for (int i = 0; i < 16; ++i)
// {
// Buttons[i] = new Button();
// this.Controls.Add(Buttons[i]);
//}
//}
//}
//}
2014年11月24日 星期一
聊天室建置配方-1
<html>
<head>
<meta http-equiv="refresh"content="1" />
</head>
<body>
<font color="red"今天日期:><?php date_default_timezone_set("Hongkong");
echo date("Y-m-d");?></font>
<br>
<font color="blue">現在時間:<?php echo date("h-i-s");?>
</body>
</html>
<head>
<meta http-equiv="refresh"content="1" />
</head>
<body>
<font color="red"今天日期:><?php date_default_timezone_set("Hongkong");
echo date("Y-m-d");?></font>
<br>
<font color="blue">現在時間:<?php echo date("h-i-s");?>
</body>
</html>
訂閱:
文章 (Atom)


