Solved

VB.net Windows Forms application - main form not opening

Posted on 2014-07-20
5
520 Views
Last Modified: 2014-07-24
Hi
I am building my first Windows Forms app ( I usually build VB.net Excel add-ins). My main form opened just fine but suddenly isn't opening. What might be causing this?
0
Comment
Question by:murbro
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 13

Expert Comment

by:duncanb7
ID: 40207792
Could you provide the code ? OR write it in detail about what you did
before the form was opened

Duncan
0
 
LVL 63

Expert Comment

by:Fernando Soto
ID: 40208171
When is the form not opening, at design time or run time?
0
 

Author Comment

by:murbro
ID: 40208223
I think that would be design time, in other words when I debug it. The strange thing is  that when I turned my machine on this morning it miraculously worked. I don't understand this. Is there perhaps some sort of mechanism that disables the app
0
 
LVL 40

Accepted Solution

by:
Jacques Bourgeois (James Burger) earned 500 total points
ID: 40208976
If there is a mechanism that disables the application, it's in the application itself.

If you restart your computer, do you get the same thing? It starts the first and does not start after that?

If so, it may be that you do not close the application properly. What code do you use to terminate the application?

For instance, if the application was not closed properly and was compiled as a single instance application (Application tab of the of the project's Properties Window, at the bottom of the Project menu), then it still runs invisible in the background, and calling it simply drops you in an application that has nothing displayed.

You can check for that through the Task Manager after you think you have closed your application.

And what code do you have when you start the application? This code might be checking something that prevents the application from starting properly.
0
 

Author Closing Comment

by:murbro
ID: 40217708
Thanks for the advice
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question