标题:然后在button3中设置往返
取消只看楼主
黎珍利
Rank: 1
等 级:新手上路
帖 子:20
专家分:9
注 册:2012-3-7
结帖率:71.43%
已结贴  问题点数:20 回复次数:1 
然后在button3中设置往返
using System;
using System.Collections.Generic;
using
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace WindowsApplication7
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            label1.Location = new Point(label1.Location.X + 10, label1.Location.Y);
        }

        private void button2_Click(object sender, EventArgs e)
        {
            int i = 0;
            for (i = 0; i < 500; i++)
                label1.Location = new Point(label1.Location.X + 5, label1.Location.Y);
        }
 private void button3_Click(object sender, EventArgs e)
        {

        }

        private void button4_Click(object sender, EventArgs e)
        {
            label1.Location = new Point(0, 0);



        }

        
        
    }
}
搜索更多相关主题的帖子: void private public 
2012-03-07 22:07
黎珍利
Rank: 1
等 级:新手上路
帖 子:20
专家分:9
注 册:2012-3-7
得分:0 
回复 2楼 tanghuawei
谢谢啊
2012-03-10 17:12



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-362516-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.052093 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved