473,387 Members | 1,453 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Form won't open anymore?

CAM
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.

Oct 30 '08 #1
6 6369
Cam,

Can it be that you have inserted somewhere End instead of completely End If
or something?

It sounds like this.

Cor
"CAM" <al***********@ca.rr.comwrote in message
news:4A**********************************@microsof t.com...
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.
Oct 30 '08 #2
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.
Oct 30 '08 #3
CAM
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.

Oct 30 '08 #4
CAM
I think I may have done that. Thanks for the tip. I appreciate the help.
"Cor Ligthert[MVP]" <No************@planet.nlwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
Cam,

Can it be that you have inserted somewhere End instead of completely End
If or something?

It sounds like this.

Cor
"CAM" <al***********@ca.rr.comwrote in message
news:4A**********************************@microsof t.com...
>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.
Oct 30 '08 #5
Don't forget that you can start the debugger using Step Into (F8). That
enables you to trace the execution from the very first command, before the
form is shown.

"CAM" <al***********@ca.rr.comwrote in message
news:4A**********************************@microsof t.com...
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.
Oct 30 '08 #6
CAM
Thanks James for the tip.

"James Hahn" <jh***@yahoo.comwrote in message
news:OU**************@TK2MSFTNGP05.phx.gbl...
Don't forget that you can start the debugger using Step Into (F8). That
enables you to trace the execution from the very first command, before the
form is shown.

"CAM" <al***********@ca.rr.comwrote in message
news:4A**********************************@microsof t.com...
>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.
Nov 5 '08 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Corepaul | last post by:
I am working in Windows 2000 and Access 2000 and am a rookie in Access. Coding merrily along, I stop periodically to test that everything works. After adding a small amount of code to several...
2
by: Bas Cost Budde | last post by:
I have a form with a Collection variable to store several objects with WithEvents children, to have all controls of a certain type behave alike. This has been working for the last day, since...
19
by: Raposa Velha | last post by:
Hello to all! Does any of you want to comment the approach I implement for instantiating a form? A description and an example follow. Cheers, RV jmclopesAThotmail.com replace the AT with the...
1
by: Ken | last post by:
I would like to make a form that has weedays mon-Fri A subform will be attached to each day to show daily activity. How do I set up fields in tblWeek so they automaticly update without having to...
8
by: Chris Thunell | last post by:
I would like to open a form and pass variables to the new form as needed. Example: Dim myform as new chrisform myform.visible = true But what i would like is Dim myform as new...
9
by: Pieter | last post by:
Hi, I have some very specific needs, and I am not able to find a nice solution. What I need is: - when the user makes a choice in the Menu, the Form of his choice must open, but: - this Form...
19
by: klenwell | last post by:
Another request for comments here. I'd like to accomplish something like the scheme outlined at this page here: http://tinyurl.com/3dtcdr In a nutshell, the form uses javascript to hash...
19
by: rbrowning1958 | last post by:
Hello, I am confused by dispose etc. and hope someone can set me right. 1. The Dispose(Bool) the IDE generates for a form has nothing to do with IDisposable, right? 2. So when is this called?...
5
by: Neil | last post by:
"lyle" <lyle.fairfield@gmail.comwrote in message news:48c3dde7-07bd-48b8-91c3-e157b703f92b@f3g2000hsg.googlegroups.com... Question for you. I'm doing something similar, only, instead of opening...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.