i had the same problem as this one had:
and this is my code:
Private Sub qcPassed_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles qcPassed1.Click, qcPassed2.Click
Dim btn As Button = CType(sender, Button)
Select Case btn.Name
qcPassed1.ForeColor = Color.Green
qcPassed2.ForeColor = Color.DarkBlue
qcPastedvar = 1
qcPassed2.ForeColor = Color.Red
qcPassed1.ForeColor = Color.DarkBlue
qcPastedvar = 2
but for some reason after i pass the code, the form closes. no errors jest closed.
Now i'm loading my form from Sub Main()
but if i'm starting with my form directly it works well.
Why is that?