• 大小: 0.07M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-02-24
  • 语言: C#
  • 标签:

资源简介


资源截图

代码片段和文件信息

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 ControButtonmove
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender EventArgs e)
        {
            Form1 formOne = new Form1();
            formOne.KeyPreview = true;
        }

        private void button1_KeyUp(object sender KeyEventArgs e)
        {
            #region 移动Button控件
            if (e.KeyCode == Keys.Left)
            {
                this.button1.Location = new Point(this.button1.Location.X - 2 this.button1.Location.Y);
            }
            else if (e.KeyCode == Keys.Right)
            {
                this.button1.Location = new Point(this.button1.Location.X + 2 this.button1.Location.Y);
            }
        

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件         938  2009-01-10 09:12  sj\01\ControButtonmove\ControButtonmove.sln
     文件       14336  2009-01-10 11:20  sj\01\ControButtonmove\ControButtonmove.suo
     文件        3778  2009-01-10 09:21  sj\01\ControButtonmove\ControButtonmove\ControButtonmove.csproj
     文件        1410  2009-01-10 11:19  sj\01\ControButtonmove\ControButtonmove\Form1.cs
     文件        2149  2009-01-10 11:06  sj\01\ControButtonmove\ControButtonmove\Form1.Designer.cs
     文件        5814  2009-01-10 11:06  sj\01\ControButtonmove\ControButtonmove\Form1.resx
     文件         497  2009-01-10 09:12  sj\01\ControButtonmove\ControButtonmove\Program.cs
     文件        8704  2009-01-10 11:06  sj\01\ControButtonmove\ControButtonmove\bin\Debug\ControButtonmove.exe
     文件       24064  2009-01-10 11:06  sj\01\ControButtonmove\ControButtonmove\bin\Debug\ControButtonmove.pdb
     文件       14328  2009-01-10 11:07  sj\01\ControButtonmove\ControButtonmove\bin\Debug\ControButtonmove.vshost.exe
     文件         490  2007-07-21 01:33  sj\01\ControButtonmove\ControButtonmove\bin\Debug\ControButtonmove.vshost.exe.manifest
     文件         827  2009-01-10 11:07  sj\01\ControButtonmove\ControButtonmove\obj\Debug\ControButtonmove.csproj.FileListAbsolute.txt
     文件         847  2009-01-10 11:06  sj\01\ControButtonmove\ControButtonmove\obj\Debug\ControButtonmove.csproj.GenerateResource.Cache
     文件        8704  2009-01-10 11:06  sj\01\ControButtonmove\ControButtonmove\obj\Debug\ControButtonmove.exe
     文件         180  2009-01-10 11:06  sj\01\ControButtonmove\ControButtonmove\obj\Debug\ControButtonmove.Form1.resources
     文件       24064  2009-01-10 11:06  sj\01\ControButtonmove\ControButtonmove\obj\Debug\ControButtonmove.pdb
     文件         180  2009-01-10 09:21  sj\01\ControButtonmove\ControButtonmove\obj\Debug\ControButtonmove.Properties.Resources.resources
     文件        1364  2009-01-10 09:11  sj\01\ControButtonmove\ControButtonmove\Properties\AssemblyInfo.cs
     文件        2882  2009-01-10 09:11  sj\01\ControButtonmove\ControButtonmove\Properties\Resources.Designer.cs
     文件        5612  2009-01-10 09:11  sj\01\ControButtonmove\ControButtonmove\Properties\Resources.resx
     文件        1101  2009-01-10 09:11  sj\01\ControButtonmove\ControButtonmove\Properties\Settings.Designer.cs
     文件         249  2009-01-10 09:11  sj\01\ControButtonmove\ControButtonmove\Properties\Settings.settings
     文件         935  2009-01-04 14:57  sl\ControlFormMove\ControlFormMove.sln
     文件       14848  2009-01-12 14:43  sl\ControlFormMove\ControlFormMove.suo
     文件        3776  2009-01-04 15:00  sl\ControlFormMove\ControlFormMove\ControlFormMove.csproj
     文件        1273  2009-01-12 14:26  sl\ControlFormMove\ControlFormMove\Form1.cs
     文件        1586  2009-01-06 08:57  sl\ControlFormMove\ControlFormMove\Form1.Designer.cs
     文件        5814  2009-01-06 08:57  sl\ControlFormMove\ControlFormMove\Form1.resx
     文件         496  2009-01-04 14:57  sl\ControlFormMove\ControlFormMove\Program.cs
     文件        8192  2009-01-10 10:12  sl\ControlFormMove\ControlFormMove\bin\Debug\ControlFormMove.exe
     文件       28160  2009-01-10 10:12  sl\ControlFormMove\ControlFormMove\bin\Debug\ControlFormMove.pdb
............此处省略13个文件信息

评论

共有 条评论