Solved

VB.net Windows Forms application - main form not opening

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

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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
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…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

707 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now