Thanks kimiraikkonen I will look into that I appreciated the tip.
"kimiraikkonen" <ki*************@gmail.comwrote in message
news:49**********************************@s50g2000 hsb.googlegroups.com...
On Oct 30, 7:19 am, "CAM" <alex_marti...@ca.rr.comwrote:
Hello,
I am using Visual Basic.Net 2008 I have created about 3 forms working OK
in
the past, but now I doesn't work anymore. When I try to start to
run/debugging the program it starts to open the form in a second and close
quickly. I don't know why this is happening. I add a treeview control, but
I don't think that is the problem. I just don't know what I did. Any tips
will be appreciated. Thank you in advance.
Cheers.
I recommend you to check your startup form's load event. There might
be some code that closes your form because of conditional statements,
or another program on your system may be killing your application.
Plus you can use a technique to catch close reason by putting in your
FormClosing event as follows:
Private Sub Form1_FormClosing(ByVal sender As Object, _
ByVal e As System.Windows.Forms.FormClosingEventArgs) _
Handles Me.FormClosing
' See close reason on exit
Msgbox(e.CloseReason.ToString)
End Sub
Hope this helps,
Onur G.