* TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
[mono-project.git] / mcs / errors / cs0070.cs
blob3aa461e51797d5c333893ac3719987b44f370c9b
1 // cs0070.cs: The event `Button.Click' can only appear on the left hand side of += or -= (except when used from within the type `Button')
2 // Line : 20
4 using System;
6 public delegate void EventHandler (int i, int j);
8 public class Button {
10 public event EventHandler Click;
14 public class Blah {
16 Button Button1 = new Button ();
18 public void Connect ()
20 Button1.Click = new EventHandler (Button1_Click);
23 public void Button1_Click (int i, int j)
27 public static void Main ()