心思世界's Archiver

tom1991 發表於 2008-9-17 15:19

報上名來器

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

louiswkt 發表於 2008-9-17 15:42

Tom 好叻呀,E+ 小玩意,假以時日必定會創出自己的事業,努力呀!:victory

tom1991 發表於 2008-9-17 15:45

[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

miokong 發表於 2008-9-17 16:54

有乜野用處???

tom1991 發表於 2008-9-17 17:26

[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

ivanyung 發表於 2008-9-17 20:52

:onion067
tom 好努力呀 ...

tom1991 發表於 2008-9-17 21:04

點解沒人下載ge:onion113 :onion023 :onion009 :onion035

ivanyung 發表於 2008-9-17 21:10

[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]

tom1991 發表於 2008-9-17 21:16

[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

ivanyung 發表於 2008-9-17 21:17

剛剛測試了,okay ... 幾好 :onion130

小小意見,butDone_Click events 最後加入

txtName.Clear();
txtMail.Clear();
txtPhone.Clear();
txtName.select();

效果可能更好。

tom1991 發表於 2008-9-17 21:18

txtName.select(); 是什麼來的...

ivanyung 發表於 2008-9-17 21:20

[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# ...

ivanyung 發表於 2008-9-17 21:36

txtName.select(); 是
以下反白
[color=White]setfocus 落 txtName 這個 object[/color] :onion126

tom1991 發表於 2008-9-17 21:46

[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

ivanyung 發表於 2008-9-17 22:17

[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();

        }
    }
}

tom1991 發表於 2008-9-17 22:20

[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

ivanyung 發表於 2008-9-17 22:25

:onion011
tom 真努力 ... 我順手可學小小 C#

tom1991 發表於 2008-9-17 22:32

:onion059 點用的-_-

ivanyung 發表於 2008-9-17 22:39

[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 ...

flourishdc 發表於 2008-9-23 15:44

:onion084 thx~

頁: [1]
eXTReMe Tracker

Powered by Discuz! Archiver 6.1.0F  © 2001-2007 Comsenz Inc.