Ask Question Forum:
Model Library:2025-02-08 Updated:A.I. model is online for auto reply question page
C
O
M
P
U
T
E
R
2
8
Show
#
ASK
RECENT
←
- Underline
- Bold
- Italic
- Indent
- Step
- Bullet
- Quote
- Cut
- Copy
- Paste
- Table
- Spelling
- Find & Replace
- Undo
- Redo
- Link
- Attach
- Clear
- Code
Below area will not be traslated by Google,you can input code or other languages
Hint:If find spelling error, You need to correct it,1 by 1 or ignore it (code area won't be checked).
X-position of the mouse cursor
Y-position of the mouse cursor
Y-position of the mouse cursor
Testcursor
caretPos
Attachment:===
Asked by murbro
at 2024-07-20 13:29:53
Point:500 Replies:5 POST_ID:829041USER_ID:11939
Topic:
Microsoft Visual Basic.Net;;
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?
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?
Author: murbro replied at 2024-07-24 11:34:31
Thanks for the advice
Accepted Solution
Expert: JamesBurger replied at 2024-07-21 06:24:04
500 points EXCELLENT
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.
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.
Author: murbro replied at 2024-07-20 21:39:39
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
Expert: Fernando Soto replied at 2024-07-20 20:12:50
When is the form not opening, at design time or run time?
Expert: duncanb7 replied at 2024-07-20 13:45:10
Could you provide the code ? OR write it in detail about what you did
before the form was opened
Duncan
before the form was opened
Duncan