title: what is the equivalent of visual basic withevents and handles in C#
body: <p>I try to convert a Visual Basic (VB) project to C# and I have no idea how to change some of codes below,</p>
  
  <p>In a windows form a field and a Timer object defined like this;</p>
  
  <pre><code>Public WithEvents tim As New Timer
  ...
  Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tim.Tick
  End Sub
  ...
  </code></pre>
  
  <p>How to rewrite this lines in C#?</p>