C#错误? System.Drawing.dll中发生未处理的“System.ArgumentException”类型异常附加信息:参数无效

时间:2017-01-05 12:47:11

标签: c#

当我尝试将鼠标悬停在上面或点击按钮之类的东西时,它会给我这个错误,我尝试了很多东西请尝试帮忙吗?这是我的代码。

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Data.OleDb;
namespace Login_Viper_Safe
 {
 public partial class login : Form
 {
    {
        InitializeComponent();

    private void bunifuThinButton22_Click_1(object sender, EventArgs e)
    {
        SlideA.Location = slideB.Location;
    }

    private void bunifuThinButton21_Click_1(object sender, EventArgs e)
    {
        slideB.Location = SlideA.Location;
    }

   }
}

1 个答案:

答案 0 :(得分:-1)

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Data.OleDb;

namespace Login_Viper_Safe
{
    public partial class login : Form
    {
        public login()
        {
            InitializeComponent();
        }

        private void bunifuThinButton22_Click_1(object sender, EventArgs e)
        {
            SlideA.Location = slideB.Location;
        }

        private void bunifuThinButton21_Click_1(object sender, EventArgs e)
        {
            slideB.Location = SlideA.Location;
        }
    }
}