Click here to Skip to main content
16,018,249 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: XML -> VB.NET -> SQL Pin
Kevin Nicol4-May-07 6:49
Kevin Nicol4-May-07 6:49 
GeneralRe: XML -> VB.NET -> SQL Pin
Ziaous4-May-07 7:52
Ziaous4-May-07 7:52 
AnswerRe: XML -> VB.NET -> SQL Pin
andyharman4-May-07 7:48
professionalandyharman4-May-07 7:48 
GeneralRe: XML -> VB.NET -> SQL Pin
Ziaous4-May-07 9:08
Ziaous4-May-07 9:08 
QuestionAdd menu items to the context menu Pin
chakor1234-May-07 5:15
chakor1234-May-07 5:15 
AnswerRe: Add menu items to the context menu Pin
Dave Kreskowiak4-May-07 6:40
mveDave Kreskowiak4-May-07 6:40 
QuestionVista and a .NET application on a shared network Pin
EMSDeveloper4-May-07 4:20
EMSDeveloper4-May-07 4:20 
AnswerRe: Vista and a .NET application on a shared network Pin
Dave Kreskowiak4-May-07 4:54
mveDave Kreskowiak4-May-07 4:54 
First, it looks like you're assuming that this exception handler will handle any exception that is thrown by your app. This is not the case. The documentation on ThreadException is a bit confusing, but it throw this exception during the processing of window messages, and only AFTER the first form is created. It won't catch every possible exception that isn't already handled.

I think it crashed because you didn't use Application.Run to start a message pump to show the startup form.

I don't have a dev environment setup on Vista, so I can't test anything. I think you have to change this, which , BTW will LEAK RESOURCES because, since you displayed the form using ShowDialog(), you're not disposing of the form when you're done with it. This is not necessary if you display the new form using Show() instead:
Dim frm As New Form1
frm.ShowDialog()

To this:
Application.Run(new Form1())



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007


QuestionRe: Vista and a .NET application on a shared network Pin
EMSDeveloper4-May-07 5:46
EMSDeveloper4-May-07 5:46 
AnswerRe: Vista and a .NET application on a shared network Pin
Dave Kreskowiak4-May-07 6:34
mveDave Kreskowiak4-May-07 6:34 
QuestionSystems Collections Generic Pin
tonysmithbrewster4-May-07 3:31
tonysmithbrewster4-May-07 3:31 
AnswerRe: Systems Collections Generic Pin
Tarakeshwar Reddy4-May-07 4:03
professionalTarakeshwar Reddy4-May-07 4:03 
AnswerRe: Systems Collections Generic Pin
Dave Kreskowiak4-May-07 4:35
mveDave Kreskowiak4-May-07 4:35 
QuestionHow to Send and receive XML packets??? Pin
shahid_isb854-May-07 2:38
shahid_isb854-May-07 2:38 
AnswerRe: How to Send and receive XML packets??? Pin
Dave Kreskowiak4-May-07 4:30
mveDave Kreskowiak4-May-07 4:30 
QuestionHow to program an application to terminate automatically? Pin
virendra_0074-May-07 2:37
virendra_0074-May-07 2:37 
AnswerRe: How to program an application to terminate automatically? Pin
Arun.Immanuel4-May-07 2:49
Arun.Immanuel4-May-07 2:49 
AnswerRe: How to program an application to terminate automatically? Pin
Dave Kreskowiak4-May-07 4:24
mveDave Kreskowiak4-May-07 4:24 
Questionarray of bytes into an array of string Pin
Rohit Dev4-May-07 0:19
Rohit Dev4-May-07 0:19 
AnswerRe: array of bytes into an array of string Pin
Dave Kreskowiak4-May-07 4:17
mveDave Kreskowiak4-May-07 4:17 
QuestionConvertion of 2003 to 2005 errors Pin
Central_IT3-May-07 23:38
Central_IT3-May-07 23:38 
AnswerRe: Convertion of 2003 to 2005 errors Pin
Rupesh Kumar Swami4-May-07 0:08
Rupesh Kumar Swami4-May-07 0:08 
GeneralRe: Convertion of 2003 to 2005 errors Pin
Central_IT4-May-07 1:37
Central_IT4-May-07 1:37 
Questiondeploying the files Pin
taherjaorawala3-May-07 23:36
taherjaorawala3-May-07 23:36 
AnswerRe: deploying the files Pin
Dave Kreskowiak4-May-07 4:10
mveDave Kreskowiak4-May-07 4:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.