I have now tried 3 separate applications, one being just a simple form with no underlying code at all. All three applications will run fine on my Dell desktop (XP) and Dell laptop (2000) but will not run on my Toshiba laptop (XP). I do the development on my desktop so I cannot run debug on the Toshiba laptop.
When I run the applications on the Toshiba, the process explorer shows it starting and immediately stopping. Placing a few log statements in the code, I noticed that the application is stopping when the form is trying to display. Load form is working fine but show form does not seem to be.
This must be a configuration issue with the Toshiba as it is the only computer that does not work. However, I have done all MS updates and it has .NET 2.0 on it. So I am at a loss as to what else it could be.
Any suggestions.

Visual Basic Express application stops before showing form on another computer
mfdiqwer
Well, I have tried it with Sub Main and a Startup Form and both exhibit the same behavior which is they end before any exceptions are thrown.
Very Odd. Can anyone think of a reason this would happen on one computer but not another
skynes
What code do you have in the form load event
Also putting me.show in the form load event is not a good thing to do!
GranBosco
xRuntime
I am using a startup form. The test application I am using is from add new project -> Windows Form and the only code I added was to track the events.
hitparader
CARMCK
Thanks for the suggestion. I added a startup, shutdown and unhandledexception events but only the startup event was logged. The others did not show up so I am not sure if unhandledexception is capturing the event or something else is terminating the process.
So I now have all these events:
Application startup
Form Load
Form Show
Form Closing
Form Closed
Application shutdown
Application Unhandledexception
Only the first two events show up in the log before the application exits. I also tried a Me.Show in Form Load Event to force a show but it did not work so I assume that the show form method is failing somewhere but not generation an exception.
Benjamin Coats
mail2amar