title: creating dynamic checkbox on runtime
body: <pre><code>Dim offset = 200
      For i = 0 To Form1.ListBox2.Items.Count - 1
  
          Dim cBox = New CheckBox()
          Me.Controls.Add(cBox)
          cBox.Location = New Point(80, offset)
          cBox.Text = Form1.ListBox2.Items.Item(i)
          offset = offset + 50
          ListBox1.Items.Add(Form1.ListBox2.Items.Item(i))
  
      Next i
  </code></pre>
  
  <p>I'm using this code to create a checkbox during runtime.. problem is how can I put checkChanged event in these checkboxes. looking forward for an answer. ASAP.</p>