2017-01-05 15 views
-2

カーソルを移動するか、ボタンのようなものをクリックしようとするとこのエラーが表示されます。物事の助けてみてください?ここに私のコードです。C#エラー? System.Drawing.dllで 'System.ArgumentException'型の未処理の例外が発生しました。追加情報:パラメータが有効ではありません

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; 
    } 

    } 
} 
+0

それはあなたの実際のコードですか?間違いがあります。 –

+4

こんにちは、私はStackOverflowへようこそ。 2行の説明と2つのほぼ同じコード行を除くすべての行が純粋なBoilderplateであるコードブロックのみを使用して問題を再現することは不可能です。 http://stackoverflow.com/help/how-to-askを読んで質問を改善してください。そうしないと、誰もあなたを助けることができません – nozzleman

答えて

-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; 
     } 
    } 
} 
関連する問題