Solved

VB.net Windows Forms application - main form not opening

Posted on 2014-07-20
5
525 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:Murray Brown
[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:Murray Brown
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:Murray Brown
ID: 40217708
Thanks for the advice
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

687 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