報上名來器
using System;using System.Windows.Forms;
namespace WindowsFormsApplication1
{
public partial class NameList : Form
{
public NameList()
{
InitializeComponent();
}
private void butDone_Click(object sender, EventArgs e)
{
txtList.Text = txtList.Text +
"\r\n" + "The name is :" + txtName.Text +
"\r\n" +"The Phone is :" +txtPhone.Text +
"\r\n" +"The E-Mail is :" +txtMail.Text + "\r\n";
}
private void butExit_Click(object sender, EventArgs e)
{
Close();
}
private void butClean_Click(object sender, EventArgs e)
{
txtName.Clear();
txtMail.Clear();
txtPhone.Clear();
}
}
}
請大家自行掃毒....:onion099
今天在學校學的,寫這程式..:onion133 Tom 好叻呀,E+ 小玩意,假以時日必定會創出自己的事業,努力呀!:victory [quote]原帖由 [i]louiswkt[/i] 於 2008-9-17 15:42 發表 [url=http://cnet.hk/bbs/redirect.php?goto=findpost&pid=564753&ptid=61455][img]http://cnet.hk/bbs/images/common/back.gif[/img][/url]
Tom 好叻呀,E+ 小玩意,假以時日必定會創出自己的事業,努力呀!:victory [/quote]但我仲有好多工具唔識點用>_<"
要靠經驗累積喇....:onion080 :onion013 有乜野用處??? [quote]原帖由 [i]miokong[/i] 於 2008-9-17 16:54 發表 [url=http://cnet.hk/bbs/redirect.php?goto=findpost&pid=564826&ptid=61455][img]http://cnet.hk/bbs/images/common/back.gif[/img][/url]
有乜野用處??? [/quote]用黎set名單囉-.-:onion164 :onion067
tom 好努力呀 ... 點解沒人下載ge:onion113 :onion023 :onion009 :onion035 [quote]原帖由 [i]tom1991[/i] 於 2008-9-17 21:04 發表 [url=http://www.cnet.hk/bbs/redirect.php?goto=findpost&pid=565061&ptid=61455][img]http://www.cnet.hk/bbs/images/common/back.gif[/img][/url]
點解沒人下載ge:onion113 :onion023 :onion009 :onion035 [/quote]
你咁樣寫,邊個咁 download ... :onion126
[color=Red]請大家自行掃毒....[/color] [quote]原帖由 [i]ivanyung[/i] 於 2008-9-17 21:10 發表 [url=http://cnet.hk/bbs/redirect.php?goto=findpost&pid=565079&ptid=61455][img]http://cnet.hk/bbs/images/common/back.gif[/img][/url]
你咁樣寫,邊個咁 download ... :onion126
請大家自行掃毒.... [/quote]但我上一次咁寫都有十幾人下載...:onion080 :onion036 剛剛測試了,okay ... 幾好 :onion130
小小意見,butDone_Click events 最後加入
txtName.Clear();
txtMail.Clear();
txtPhone.Clear();
txtName.select();
效果可能更好。 txtName.select(); 是什麼來的... [quote]原帖由 [i]tom1991[/i] 於 2008-9-17 21:18 發表 [url=http://www.cnet.hk/bbs/redirect.php?goto=findpost&pid=565086&ptid=61455][img]http://www.cnet.hk/bbs/images/common/back.gif[/img][/url]
txtName.select(); 是什麼來的... [/quote]
:onion052 秘密,我估同 vb.net 一樣姐,我多唔識 C# ... txtName.select(); 是
以下反白
[color=White]setfocus 落 txtName 這個 object[/color] :onion126 [quote]原帖由 [i]ivanyung[/i] 於 2008-9-17 21:36 發表 [url=http://cnet.hk/bbs/redirect.php?goto=findpost&pid=565108&ptid=61455][img]http://cnet.hk/bbs/images/common/back.gif[/img][/url]
txtName.select(); 是
以下反白
setfocus 落 txtName 這個 object :onion126 [/quote]我用左,但佢話我error...:onion106 [quote]原帖由 [i]tom1991[/i] 於 2008-9-17 21:46 發表 [url=http://www.cnet.hk/bbs/redirect.php?goto=findpost&pid=565130&ptid=61455][img]http://www.cnet.hk/bbs/images/common/back.gif[/img][/url]
我用左,但佢話我error...:onion106 [/quote]
:onion011 再試下,剛用 C# 試過 okay ... my second C# program ... :onion004
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace test1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
textBox1.Select();
}
}
} [quote]原帖由 [i]ivanyung[/i] 於 2008-9-17 22:17 發表 [url=http://cnet.hk/bbs/redirect.php?goto=findpost&pid=565178&ptid=61455][img]http://cnet.hk/bbs/images/common/back.gif[/img][/url]
:onion011 再試下,剛用 C# 試過 okay ... my second C# program ... :onion004
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing ... [/quote]let me try :onion011
tom 真努力 ... 我順手可學小小 C# :onion059 點用的-_- [quote]原帖由 [i]tom1991[/i] 於 2008-9-17 22:32 發表 [url=http://www.cnet.hk/bbs/redirect.php?goto=findpost&pid=565211&ptid=61455][img]http://www.cnet.hk/bbs/images/common/back.gif[/img][/url]
:onion059 點用的-_- [/quote]
click 一下就會 setfocus 到 textbox1 .......
sleeping ... :onion084 thx~
頁:
[1]