dohoangthien
02-10-2008, 11:11
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 Calculation
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
int so = 1;
s1_Click(ref so);
}
private void s1_Click(ref int sosau)
{
int chuso = 1;
sosau += chuso;
}
}
}
Khi mình chạy code thì nó báo là No overload for 's1_Click' matches delegate 'System.EventHandler'. Mấy pro giúp mình với.
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace Calculation
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
int so = 1;
s1_Click(ref so);
}
private void s1_Click(ref int sosau)
{
int chuso = 1;
sosau += chuso;
}
}
}
Khi mình chạy code thì nó báo là No overload for 's1_Click' matches delegate 'System.EventHandler'. Mấy pro giúp mình với.