Solved

VB.net Windows Forms application - main form not opening

Posted on 2014-07-20
5
510 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
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VB.Net - Project Software to help the Developer 7 40
VB.NET return row from SQL to DataSet and get column values ? 3 101
SQL LINE CONTINUATION ISSUE 12 38
location of a form 2 25
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…
If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…

827 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